webpack: ignore electron, fix optimization

This commit is contained in:
Guillermo Rauch 2016-07-07 07:47:10 -07:00
parent b6990f7543
commit 98e45a500f

View file

@ -28,9 +28,10 @@ module.exports = {
test: /\.css$/, test: /\.css$/,
loader: 'style-loader!css-loader' loader: 'style-loader!css-loader'
} }
],
plugins: [
new webpack.optimize.OccurrenceOrderPlugin()
] ]
} },
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.ExternalsPlugin('commonjs', ['electron'])
]
}; };