mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Implement simple Webpack setup
This commit is contained in:
15
samples/misc/Webpack/webpack.config.prod.js
Normal file
15
samples/misc/Webpack/webpack.config.prod.js
Normal file
@@ -0,0 +1,15 @@
|
||||
var webpack = require('webpack');
|
||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
var extractLESS = new ExtractTextPlugin('my-styles.css');
|
||||
|
||||
module.exports = {
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.less$/, loader: extractLESS.extract(['css', 'less']) },
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
extractLESS,
|
||||
new webpack.optimize.UglifyJsPlugin({ minimize: true })
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user