mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
18 lines
542 B
JavaScript
18 lines
542 B
JavaScript
var webpack = require('webpack');
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
var extractCSS = new ExtractTextPlugin('site.css');
|
|
|
|
module.exports = {
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.css/, loader: extractCSS.extract(['css']) },
|
|
]
|
|
},
|
|
plugins: [
|
|
extractCSS,
|
|
new webpack.optimize.OccurenceOrderPlugin(),
|
|
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }),
|
|
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' })
|
|
]
|
|
};
|