mirror of
https://github.com/doocs/md.git
synced 2024-10-31 00:07:50 +08:00
15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
module.exports = {
|
|
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
|
|
configureWebpack: (config) => {
|
|
config.module.rules.push({
|
|
test: /\.(txt|md)$/i,
|
|
use: [{
|
|
loader: 'raw-loader',
|
|
}]
|
|
})
|
|
},
|
|
css: {
|
|
sourceMap: true,
|
|
},
|
|
}
|