This commit is contained in:
2026-02-12 21:26:09 +08:00
parent eaf9586a28
commit 232b2146d0

View File

@@ -1,3 +1,5 @@
const path = require('path')
const config = { const config = {
projectName: 'market-miniprogram', projectName: 'market-miniprogram',
date: '2023-10-27', date: '2023-10-27',
@@ -30,6 +32,13 @@ const config = {
enable: false // Disable cache to fix prebundle error enable: false // Disable cache to fix prebundle error
}, },
mini: { mini: {
webpackChain(chain) {
chain.module
.rule('script')
.include
.add(path.resolve('src'))
.add(path.resolve('node_modules/marked'))
},
postcss: { postcss: {
pxtransform: { pxtransform: {
enable: true, enable: true,