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.
35 lines
776 B
35 lines
776 B
// vue.config.js |
|
const path = require('path') |
|
|
|
const isProduction = process.env.NODE_ENV === 'production' |
|
|
|
module.exports = { |
|
publicPath: isProduction ? '' : '', |
|
assetsDir: isProduction ? './' : './', |
|
// productionSourceMap: false, |
|
lintOnSave: false, //关闭eslint检查 |
|
devServer: { |
|
open: true, |
|
}, |
|
// chainWebpack: config => { |
|
// config.module |
|
// .rule('txt') |
|
// .test( /\.(txt|lrc)$/) |
|
// .use('raw-loader') |
|
// .loader('raw-loader') |
|
// .end() |
|
// }, |
|
configureWebpack: { |
|
module: { |
|
rules: [ |
|
{ |
|
//解析txt、lrc文件 |
|
test: /\.(txt|lrc)$/, |
|
exclude: /node_modules/, |
|
include: path.join(__dirname, 'src'), |
|
use: ['raw-loader'] |
|
} |
|
] |
|
}, |
|
} |
|
}
|
|
|