first commit
This commit is contained in:
19
vue-ydui/build/webpack.dev.conf.js
Normal file
19
vue-ydui/build/webpack.dev.conf.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const merge = require('webpack-merge');
|
||||
const baseWebpackConfig = require('./base.conf');
|
||||
|
||||
module.exports = merge(baseWebpackConfig, {
|
||||
entry: {
|
||||
main: './example/main.js',
|
||||
vendors: ['vue', 'vue-router']
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, './dist'),
|
||||
publicPath: '/dist/',
|
||||
filename: '[name].js'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.CommonsChunkPlugin({name: 'vendors', filename: 'vendors.js'})
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user