File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
const { getPathPrefix } = require ( './util' )
2
2
3
3
function genScript ( name , isPage , src ) {
4
- const prefix = isPage ? getPathPrefix ( src ) : '.'
4
+ const prefix = isPage ? getPathPrefix ( src ) : './ '
5
5
6
6
return `
7
- require('${ prefix } / static/js/manifest')
8
- require('${ prefix } / static/js/vendor')
9
- require('${ prefix } / static/js/${ name } ')
7
+ require('${ prefix } static/js/manifest')
8
+ require('${ prefix } static/js/vendor')
9
+ require('${ prefix } static/js/${ name } ')
10
10
`
11
11
}
12
12
13
13
function genStyle ( name , isPage , src ) {
14
- const prefix = isPage ? getPathPrefix ( src ) : '.'
15
- return `@import "${ prefix } / static/css/${ name } .wxss";`
14
+ const prefix = isPage ? getPathPrefix ( src ) : './ '
15
+ return `@import "${ prefix } static/css/${ name } .wxss";`
16
16
}
17
17
18
18
function genPageWxml ( templateName , src ) {
You can’t perform that action at this time.
0 commit comments