mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
添加cache-loader,debug模式下不再使用template缓存,修复一些 bug
This commit is contained in:
1 parent
dd7914e1fb
commit
11368bc831
21 files changed
+248
-266
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user