Skip to content

Commit

Permalink
Revert webpack configs
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Jul 5, 2019
1 parent a0ff993 commit 28d36cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config = {
publicPath: '/'
},
mode: 'development',
devtool: process.env.NODE_ENV === "development" ? "source-map" : "none",
devtool: 'source-map',
optimization: {
namedModules: true
},
Expand Down
12 changes: 6 additions & 6 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const config = {
filename: 'bundle.js'
},
node: {
fs: "empty"
fs: 'empty'
},
mode: 'production',
devtool: process.env.NODE_ENV === "development" ? "source-map" : "none",
devtool: 'source-map',
optimization: {
namedModules: true,
splitChunks: {
Expand All @@ -43,8 +43,8 @@ const config = {
exclude: /node_modules\/electron\-timber\/preload\.js/
},
{
test: /.node$/,
use: 'node-loader'
test: /.node$/,
use: 'node-loader'
},
{
test: /.scss$/,
Expand Down Expand Up @@ -79,11 +79,11 @@ const config = {
}),
new HappyPack({
id: 'jsx',
loaders: [ 'babel-loader' ]
loaders: ['babel-loader']
}),
new HappyPack({
id: 'scss',
loaders: [ 'style-loader!css-loader?importLoaders=1&modules&localIdentName=[local]!sass-loader' ]
loaders: ['style-loader!css-loader?importLoaders=1&modules&localIdentName=[local]!sass-loader']
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
Expand Down

0 comments on commit 28d36cc

Please sign in to comment.