Skip to content
Snippets Groups Projects
Unverified Commit a5931987 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

fix webpack assets (#559)

parent 990c1389
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,10 @@ module.exports = {
use : [{
loader : 'file-loader',
options : {
name : '[name].[ext]',
name (resourcePath, resourceQuery) {
const appendAtlas = /res\/ext\/atlas\//.test(resourcePath)
return `${appendAtlas ? 'atlas/' : ''}[name].[ext]`
},
outputPath : 'res/json'
}
}]
......
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