const { defineConfig } = require('@vue/cli-service')
const config = defineConfig({
transpileDependencies: true,
lintOnSave: false,
})
// module.exports = {
// ...config,
// productionSourceMap: false,
// publicPath: './',
// outputDir: 'fintech-asset-h5',
// assetsDir: 'assets',
// devServer: {
// port: 8090,
// host: 'localhost',
// https: false,
// open: true
// },
// configureWebpack: config => {
// require('vux-loader').merge(config, {
// options: {},
// plugins: ['vux-ui']
// })
// },
// }
module.exports = {
...config,
productionSourceMap: false,
publicPath: './',
outputDir: 'fintech-asset-h5',
assetsDir: 'assets',
devServer: {
port: 8090,
host: 'localhost',
https: false,
open: true
},
configureWebpack: {
module: {
rules: [
{
test: /\.vue$/,
use: [
{
loader: 'vue-loader',
options: {
compilerOptions: {
preserveWhitespace: false
}
}
},
{
loader: 'vux-loader'
}
]
}
]
}
},
}