mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
29 lines
596 B
JavaScript
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')]
|
|
}
|
|
}
|
|
}
|
|
};
|