2017-11-11 21:51:09 +00:00
|
|
|
/*! webpack.config.js */
|
|
|
|
|
|
|
|
const webpack = require("webpack");
|
|
|
|
const CleanCSSPlugin = require("less-plugin-clean-css");
|
2017-11-10 07:38:47 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: "./client/dcwebui.js",
|
|
|
|
output: {
|
|
|
|
path: __dirname,
|
2017-11-11 21:38:35 +00:00
|
|
|
filename: "clientpack/bundle.min.js"
|
2017-11-10 07:38:47 +00:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [
|
2017-11-11 21:51:09 +00:00
|
|
|
|
|
|
|
// Plain CSS files (no longer present)
|
|
|
|
{ test: /\.css$/, loader: "style-loader!css-loader" },
|
|
|
|
|
|
|
|
// LESS CSS files
|
|
|
|
{
|
|
|
|
test: /\.less$/,
|
|
|
|
use: [
|
|
|
|
{ loader: "style-loader" },
|
|
|
|
{ loader: "css-loader" },
|
|
|
|
{
|
|
|
|
loader: "less-loader",
|
|
|
|
options: {
|
|
|
|
noIeCompat: false,
|
|
|
|
plugins: [
|
|
|
|
new CleanCSSPlugin({ advanced: true })
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-11-10 07:38:47 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
|
|
compress: {
|
|
|
|
warnings: false
|
|
|
|
}
|
|
|
|
})
|
|
|
|
]
|
2017-11-11 21:38:35 +00:00
|
|
|
};
|