mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
19 lines
534 B
JavaScript
19 lines
534 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/, exclude: /ClientApp/, loader: extractCSS.extract(['css']) },
|
|
]
|
|
},
|
|
plugins: [
|
|
extractCSS,
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
minimize: true,
|
|
mangle: false // Due to https://github.com/angular/angular/issues/6678
|
|
})
|
|
]
|
|
};
|