You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
492 B
17 lines
492 B
9 years ago
|
// webpack.config.min.js
|
||
|
// release min dist files
|
||
|
var pkg = require('./package');
|
||
|
var webpack = require("webpack");
|
||
|
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||
|
var config = require("./webpack.config.js");
|
||
|
|
||
|
config.plugins = [
|
||
|
new ExtractTextPlugin('[name].min.css'),
|
||
|
new webpack.optimize.UglifyJsPlugin()
|
||
|
];
|
||
|
config.output.filename = config.output.filename.replace(/\.js$/, ".min.js");
|
||
|
delete config.entry.demo;
|
||
|
delete config.entry[pkg.name];
|
||
|
|
||
|
module.exports = config;
|