rebuilding remplate on save

(still doesnt work with auto refersh)
This commit is contained in:
Miodec 2022-05-03 18:57:33 +02:00
parent 2faf097307
commit 52ffeb3da9
3 changed files with 55 additions and 0 deletions

View file

@ -42,6 +42,7 @@
"css-loader": "6.7.1",
"css-minimizer-webpack-plugin": "3.4.1",
"eslint-webpack-plugin": "3.1.1",
"extra-watch-webpack-plugin": "1.0.3",
"grecaptcha": "1.0.3",
"gulp": "4.0.2",
"gulp-eslint-new": "1.4.2",
@ -5316,6 +5317,31 @@
"node": ">=0.10.0"
}
},
"node_modules/extra-watch-webpack-plugin": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/extra-watch-webpack-plugin/-/extra-watch-webpack-plugin-1.0.3.tgz",
"integrity": "sha512-ZScQdMH6hNofRRN6QMQFg+aa5vqimfBgnPXmRDhdaLpttT6hrzpY9Oyren3Gh/FySPrgsvKCNbx/NFA7XNdIsg==",
"dev": true,
"dependencies": {
"glob": "^7.1.2",
"is-glob": "^4.0.0",
"lodash.uniq": "^4.5.0",
"schema-utils": "^0.4.0"
}
},
"node_modules/extra-watch-webpack-plugin/node_modules/schema-utils": {
"version": "0.4.7",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz",
"integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==",
"dev": true,
"dependencies": {
"ajv": "^6.1.0",
"ajv-keywords": "^3.1.0"
},
"engines": {
"node": ">= 4"
}
},
"node_modules/fancy-log": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz",
@ -18590,6 +18616,30 @@
}
}
},
"extra-watch-webpack-plugin": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/extra-watch-webpack-plugin/-/extra-watch-webpack-plugin-1.0.3.tgz",
"integrity": "sha512-ZScQdMH6hNofRRN6QMQFg+aa5vqimfBgnPXmRDhdaLpttT6hrzpY9Oyren3Gh/FySPrgsvKCNbx/NFA7XNdIsg==",
"dev": true,
"requires": {
"glob": "^7.1.2",
"is-glob": "^4.0.0",
"lodash.uniq": "^4.5.0",
"schema-utils": "^0.4.0"
},
"dependencies": {
"schema-utils": {
"version": "0.4.7",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz",
"integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==",
"dev": true,
"requires": {
"ajv": "^6.1.0",
"ajv-keywords": "^3.1.0"
}
}
}
},
"fancy-log": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz",

View file

@ -31,6 +31,7 @@
"css-loader": "6.7.1",
"css-minimizer-webpack-plugin": "3.4.1",
"eslint-webpack-plugin": "3.1.1",
"extra-watch-webpack-plugin": "1.0.3",
"grecaptcha": "1.0.3",
"gulp": "4.0.2",
"gulp-eslint-new": "1.4.2",

View file

@ -4,6 +4,7 @@ const CircularDependencyPlugin = require("circular-dependency-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const RemovePlugin = require("remove-files-webpack-plugin");
const ExtraWatchWebpackPlugin = require("extra-watch-webpack-plugin");
let circularImports = 0;
@ -118,6 +119,9 @@ const BASE_CONFIG = {
include: [resolve(__dirname, "../public/html")],
},
}),
new ExtraWatchWebpackPlugin({
dirs: [resolve(__dirname, "../static/html")],
}),
],
};