添加cache-loader,debug模式下不再使用template缓存,修复一些 bug

This commit is contained in:
undefined committed 2020-07-11 20:00:43 +08:00
1 parent dd7914e1fb
commit 11368bc831
21 files changed
+248 -266

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ export default function (env = {}) {
}
function babelLoader() {
let cacheDirectory = root('.cache/babel');
let cacheDirectory = root('../.cache/babel');
try {
fs.ensureDirSync(cacheDirectory);
} catch (ignored) {
@@ -173,7 +173,7 @@ export default function (env = {}) {
patterns: [
{ from: root('static') },
{ from: root('node_modules/emojify.js/dist/images/basic'), to: 'img/emoji/' },
]
],
}),
// Options are provided by LoaderOptionsPlugin until webpack#3136 is fixed