Skip to content

Commit

Permalink
Breaking: __IS_PRODUCTIONをデフォルトで提供するのを停止
Browse files Browse the repository at this point in the history
TypeScript諸々で処理が必要になっていまい、邪魔になるケースがあった
  • Loading branch information
sable-virt committed Dec 9, 2015
1 parent 264f4aa commit 6df832b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ var webpackConfig = {
],
loaders: [
{ test: /\.html$/, exclude:/node_modules/, loaders: ['html'] },
{ test: /Spec\.js$/i, exclude:/node_modules/, loaders: ['webpack-espower','babel'] },
{ test: /\.js$/, exclude:/node_modules/, loaders: ['babel'] }
{ test: /Spec\.js$/i, exclude:/node_modules/, loaders: ['webpack-espower','babel?presets[]=es2015'] },
{ test: /\.jsx?$/, exclude:/node_modules/, loaders: ['babel?presets[]=es2015'] }
]
},
plugins: [
new webpack.DefinePlugin({
__IS_PRODUCTION: JSON.stringify(global.__IS_PRODUCTION)
}),
new webpack.optimize.UglifyJsPlugin({
exclude: /Spec\.js$/i,
compress: {
Expand Down

0 comments on commit 6df832b

Please sign in to comment.