mirror of
https://github.com/CoreyGinnivan/system-uicons.git
synced 2024-06-10 09:52:14 +02:00
Fixed hot reload
This commit is contained in:
parent
a2ceaa46a4
commit
9c6000a2c9
|
@ -3,7 +3,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"zip": "node createZip.js",
|
"zip": "node createZip.js",
|
||||||
"prebuild": "npm run zip",
|
"prebuild": "npm run zip",
|
||||||
"dev": "cross-env NODE_ENV=development webpack-dev-server",
|
"dev": "cross-env NODE_ENV=development webpack serve --open",
|
||||||
"prod": "npm run zip && cross-env NODE_ENV=production webpack"
|
"prod": "npm run zip && cross-env NODE_ENV=production webpack"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||||
|
const path = require("path");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: "./src/css/tailwind.src.css",
|
entry: "./src/css/tailwind.src.css",
|
||||||
|
@ -13,6 +14,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
devServer: {
|
||||||
|
static: "./dist",
|
||||||
|
watchFiles: path.join(__dirname, "src"),
|
||||||
|
hot: true,
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new MiniCssExtractPlugin(),
|
new MiniCssExtractPlugin(),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
|
|
Loading…
Reference in a new issue