Production mode
See original GitHub issueWhen deploying to production setting NODE_ENV=production
I get Cannot GET /
This only happens on production mode, why?
LOGS:
ERROR Failed to compile with 2 errors 01:35:53
error in ./src/App.vue
Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
at Object.module.exports.pitch (/Users/victor/projects/cryptolancer-io/code/frontend-cryptolancer-io/node_modules/extract-text-webpack-plugin/loader.js:25:9)
@ ./src/App.vue 2:2-371
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
error in ./src/components/Hello.vue
Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
at Object.module.exports.pitch (/Users/victor/projects/cryptolancer-io/code/frontend-cryptolancer-io/node_modules/extract-text-webpack-plugin/loader.js:25:9)
@ ./src/components/Hello.vue 2:2-381
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ProductionMode - Instagram
3993 Followers, 2789 Following, 784 Posts - See Instagram photos and videos from Production Mode // Jamie Hayes (@productionmode)
Read more >Mode of production - Wikipedia
In the Marxist theory of historical materialism, a mode of production is a specific combination of the: Productive forces: these include human labour...
Read more >Production Mode - Developer Help
This section focuses on the production mode, which is one of the two application modes of the IPE. The Integrated Programming Environment (IPE)...
Read more >Development and production modes - Expo Documentation
Development mode includes useful warnings and gives you access to tools that make development and debugging easier. Production mode minifies your code and ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh, I usually use http-server when I want to quickly serve the built files locally.
I changed my scripts, for production, now I’m running it with command
start
:and in
server.js
:Everything ok now. Simply added node.js for testing that production build works, because I don’t want to install nginx locally or anything other.