-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
35 lines (34 loc) · 893 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const path = require('path');
// const SkeletonWebpackPlugin = require('vue-skeleton-webpack-plugin');
const webpack = require('webpack');
module.exports = {
baseUrl: './',
/* configureWebpack: (config)=>{
config.plugins.push(new SkeletonWebpackPlugin({
webpackConfig: {
entry: {
app: path.join(__dirname, './src/skeleton.ts'),
},
},
minimize: true,
quiet: true,
}))
}, */
configureWebpack: {
plugins: [
new webpack.DllReferencePlugin({
context: path.resolve(__dirname, '../'),
manifest: require('./public/vender/vender-manifest.json')
})
]
},
// css相关配置
css: {
// 是否使用css分离插件 ExtractTextPlugin
extract: true,
// 开启 CSS source maps?
sourceMap: false,
// 启用 CSS modules for all css / pre-processor files.
modules: false
},
};