mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-15 04:14:46 +00:00
run webpack in watch mode
This commit is contained in:
@@ -23,4 +23,8 @@ module.exports = function create_app(src, dest, routes, options) {
|
||||
const main = template.replace('__routes__', code);
|
||||
|
||||
fs.writeFileSync(main_built, main);
|
||||
|
||||
// need to fudge the mtime, because webpack is soft in the head
|
||||
const stats = fs.statSync(main_built);
|
||||
fs.utimesSync(main_built, stats.atimeMs - 9999, stats.mtimeMs - 9999);
|
||||
};
|
||||
Reference in New Issue
Block a user