-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem when running npm run watch #113
Comments
Thank you so much for this! But I can't find out how to make it build! It gives me errors! |
My English is not very good. As I understand it you want to know how to fix it? If so, I'll tell you how I did it. |
No not that sorry. What I have an issue with is |
Your script will work after adding npm install cross-env, and then adding cross-env before NODE_ENV, as I put in the example above. |
Yes. I'm saying that I did all of that. Added "production" and "watch" and did |
Working good |
Hi there. I cannot get it to work. I followed a bunch of tips&tricks, but to no avail. Maybe you guys can help me? The logfile:
|
Hello, install cross-env and changed my package.json as follow:
Getting:
Any idea? |
Hi the answer was posted in another thread, here you go.
|
Babel loader uses babel core 7, make sure to update it, you can use: |
You first need to do an npm install cross-env,
then in package.json change the following lines:
"watch": "cross-env NODE_ENV=development webpack --watch --config ./webpack/webpack.config.js",
"production": "cross-env NODE_ENV=production webpack --config ./webpack/webpack.config.js --display-entrypoints",
The text was updated successfully, but these errors were encountered: