We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a7980 commit 878f783Copy full SHA for 878f783
package.json
@@ -4,7 +4,9 @@
4
"description": "",
5
"main": "index.js",
6
"scripts": {
7
- "dev": "webpack serve"
+ "dev": "webpack serve",
8
+ "build": "NODE_ENV='production' webpack",
9
+ "build-for-window": "set NODE_ENV=production&&webpack"
10
},
11
"babel": {
12
"presets": [
webpack.config.js
@@ -17,7 +17,7 @@ module.exports = {
17
resolve: {
18
extensions: [".jsx", "..."],
19
20
- mode: "development",
+ mode: process.env.NODE_ENV === "production" ? "production" : "development",
21
plugins: [
22
new HtmlWebpackPlugin({
23
template: "app/index.html",
0 commit comments