Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions dist/index_bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"production": "webpack -p",
"production": "webpack --config webpack-production.config.js -p",
"start": "webpack-dev-server",
"deploy": "gh-pages -d dist"
},
Expand Down
12 changes: 12 additions & 0 deletions webpack-production.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var webpack = require('webpack');
var Config = require('./webpack.config.js');

var WebpackDefinitions = new webpack.DefinePlugin({
"process.env": {
NODE_ENV: JSON.stringify("production")
}
})

Config.plugins.push(WebpackDefinitions);

module.exports = Config;
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
inject: 'body'
})


module.exports = {
entry: [
'./app/index.js'
Expand Down