新的版本
This commit is contained in:
37
vue.config.js
Normal file
37
vue.config.js
Normal file
@@ -0,0 +1,37 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
productionSourceMap: false,
|
||||
assetsDir: 'static',
|
||||
publicPath: './',
|
||||
outputDir: 'docs',
|
||||
|
||||
pages: {
|
||||
mainPage: {
|
||||
// 入口
|
||||
entry: 'src/main.js',
|
||||
// 模板来源
|
||||
template: 'public/index.html',
|
||||
// 在 dist 的输出
|
||||
filename: 'index.html',
|
||||
// 标题
|
||||
title: 'Frost 网址导航',
|
||||
// 包含的块
|
||||
chunks: ['chunk-common', 'chunk-vendors', 'mainPage']
|
||||
}
|
||||
},
|
||||
|
||||
pluginOptions: {
|
||||
'style-resources-loader': {
|
||||
preProcessor: 'less',
|
||||
// 全局 Less
|
||||
patterns: [
|
||||
path.resolve(__dirname, 'src/assets/css/global.less')
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
devServer: {
|
||||
port: 9005
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user