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": {
|
||||
"zip": "node createZip.js",
|
||||
"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"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
entry: "./src/css/tailwind.src.css",
|
||||
|
@ -13,6 +14,11 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
devServer: {
|
||||
static: "./dist",
|
||||
watchFiles: path.join(__dirname, "src"),
|
||||
hot: true,
|
||||
},
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
|
|
Loading…
Reference in a new issue