enable hmr
This commit is contained in:
parent
9bc85ca669
commit
dac9be1b01
|
@ -1,2 +1,3 @@
|
||||||
assets/
|
assets/
|
||||||
mix-manifest.json
|
mix-manifest.json
|
||||||
|
/hot
|
||||||
|
|
|
@ -5,6 +5,7 @@ This is a starter theme for October CMS that includes:
|
||||||
|
|
||||||
- Webpack (using Laravel Mix)
|
- Webpack (using Laravel Mix)
|
||||||
- PostCSS
|
- PostCSS
|
||||||
|
- Hot module reloading
|
||||||
|
|
||||||
To use it:
|
To use it:
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,11 +5,13 @@
|
||||||
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"watch": "npm run development -- --watch",
|
"watch": "npm run development -- --watch",
|
||||||
"watch-poll": "npm run watch -- --watch-poll",
|
"watch-poll": "npm run watch -- --watch-poll",
|
||||||
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"prod": "npm run production",
|
"prod": "npm run production",
|
||||||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js"
|
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"browser-sync": "^2.26.14",
|
||||||
|
"browser-sync-webpack-plugin": "^2.2.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"laravel-mix": "^6.0.13",
|
"laravel-mix": "^6.0.13",
|
||||||
"postcss": "^8.2.8",
|
"postcss": "^8.2.8",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* css to go here */
|
/* css to go here */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@mixin defineHex --test-hsl, #00ff00;
|
@mixin defineHex --test-hsl, #0000ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -2,13 +2,9 @@ let mix = require('laravel-mix');
|
||||||
|
|
||||||
mix.options({
|
mix.options({
|
||||||
processCssUrls: false,
|
processCssUrls: false,
|
||||||
autoprefixer: {
|
hmrOptions: {
|
||||||
enabled: true,
|
host: 'october.home',
|
||||||
options: {
|
port: '8080'
|
||||||
overrideBrowserslist: ['last 2 versions', '> 1%'],
|
|
||||||
cascade: true,
|
|
||||||
grid: true,
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.setPublicPath('/')
|
.setPublicPath('/')
|
||||||
|
|
Loading…
Reference in New Issue