Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinjung04 committed Aug 2, 2016
1 parent bb111d2 commit b1b1493
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
5 changes: 2 additions & 3 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ module.exports = {
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('development'),
BUILD: true
NODE_ENV: JSON.stringify('development')
}
})
],
Expand All @@ -30,7 +29,7 @@ module.exports = {
query: {
presets: [ 'react-hmre' ]
}
}
}
]
}
};
26 changes: 13 additions & 13 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ module.exports = {
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
BUILD: true,
NODE_ENV: JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false
}
}),
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, 'src', 'assets'),
to: path.resolve(__dirname, 'dist', 'assets')
}
])
compressor: {
warnings: false
}
}),
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, 'src', 'assets'),
to: path.resolve(__dirname, 'dist', 'assets')
}
]),
new ExtractTextPlugin('bundle.css')
],
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
include: path.resolve(__dirname, 'src')
}
}
]
}
};

0 comments on commit b1b1493

Please sign in to comment.