Commit aaafcc01 authored by Liang Ding's avatar Liang Ding

🎨 修复 Windows 上 webpack 打包生成 css undefined 目录问题

parent 946fd727
This diff is collapsed.
...@@ -101,7 +101,7 @@ module.exports = (env, argv) => { ...@@ -101,7 +101,7 @@ module.exports = (env, argv) => {
name (file) { name (file) {
const skins = file.split('skins') const skins = file.split('skins')
if (skins.length === 2) { if (skins.length === 2) {
return `skins/${skins[1].split('/')[1]}/css/[name].css` return `skins/${skins[1].split(path.sep)[1]}/css/[name].css`
} else { } else {
return 'scss/[name].css' return 'scss/[name].css'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment