new
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user