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