components build

This commit is contained in:
cookfront
2017-03-03 16:13:18 +08:00
parent 46a54f35c1
commit b8a16cabc2
7 changed files with 35 additions and 40715 deletions
+14
View File
@@ -0,0 +1,14 @@
var Components = require('../components.json');
var config = require('./webpack.config.js');
delete config.devtool;
config.entry = Components;
config.output = {
path: './lib',
filename: '[name].js',
libraryTarget: 'umd'
};
module.exports = config;
-8
View File
@@ -81,12 +81,6 @@ if (process.env.NODE_ENV === 'production') {
NODE_ENV: 'production'
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new ExtractTextPlugin(`yzvue_base_${version}_min.css`),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
@@ -101,9 +95,7 @@ if (process.env.NODE_ENV === 'production') {
})
];
} else {
// development 环境不会抽css - -
module.exports.plugins = [
new ExtractTextPlugin('style.dev.css'),
new webpack.LoaderOptionsPlugin({
minimize: true,
options: {