Skip to content

Commit

Permalink
feat:support theme
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Jan 24, 2021
1 parent 24f0ce3 commit 3d8e575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = (app , { dir , defaultTheme = 'default' } = {}) => {
path:(src, req) => {
let relpath = path.relative(dir,src)
let p = path.resolve(dir,options.theme,relpath)
options.staticMap[ '\\' + relpath.replace('.less','.css') ] = path.resolve(dest,relpath.replace('.less','.css'))
options.staticMap[ path.sep + relpath.replace('.less','.css') ] = path.resolve(dest,relpath.replace('.less','.css'))
return p
}
}
Expand Down

0 comments on commit 3d8e575

Please sign in to comment.