vant/site/vue.config.js
2019-07-03 16:10:45 +08:00

29 lines
596 B
JavaScript

const path = require('path');
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/vant/' : '/',
productionSourceMap: false,
pages: {
index: 'src/desktop/main.js',
mobile: 'src/mobile/main.js'
},
chainWebpack: config => config.resolve.extensions.prepend('.md'),
configureWebpack: {
module: {
rules: [
{
test: /\.md$/,
use: ['vue-loader', '@vant/markdown-loader']
}
]
}
},
css: {
loaderOptions: {
less: {
paths: [path.resolve(__dirname, '../node_modules')]
}
}
}
};