I
I
Igor2017-06-13 00:53:12
JavaScript
Igor, 2017-06-13 00:53:12

How to automate webpack build?

Tell me how to properly configure node.js so that it collects webpack after changing the file.
Inserted into package.json as they write everywhere

"scripts": {
        "watch": "webpack --watch",
        "build": "webpack"
    },

But, why is my bundle only built after the command from the console npm run build ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2017-06-13
@corsik

The change tracking task itself must be constantly running.
In the console:
If you want it to hang in the background and not occupy the console, then:
To pull it out of the background:
fg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question