Skip to content

Commit

Permalink
Merge branch 'release/2.4.8' into craft-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Nov 30, 2020
2 parents 9bc1b3d + 6f47d76 commit c2dbac4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# nystudio107/craft Change Log

## 2.4.8 - 2020.11.30
### Added
* Added `nodemon` so `webpack-dev-server` will automatically restart if we change any of the webpack configs

### Changed
* Use `webpack-dev-server` version `^4.0.0-beta.0` for additional speed & better webpack 5 support

## 2.4.7 - 2020.11.26
### Changed
* Remove `postcss-preset-env`, add `autoprefixer` & `postcss-nested`
Expand Down
8 changes: 8 additions & 0 deletions buildchain/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"watch": [
"webpack.dev.js",
"webpack-configs/*.js",
"webpack-settings/*.js"
],
"exec": "webpack serve --config webpack.dev.js"
}
7 changes: 4 additions & 3 deletions buildchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"imagemin-webp-webpack-plugin": "^3.3.0",
"img-loader": "^3.0.0",
"mini-css-extract-plugin": "^1.2.0",
"nodemon": "^2.0.6",
"postcss": "^8.1.1",
"postcss-import": "^12.0.0",
"postcss-loader": "^4.1.0",
Expand All @@ -107,7 +108,7 @@
"webpack": "^5.3.0",
"webpack-bundle-analyzer": "^4.0.0-rc1",
"webpack-cli": "^4.1.0",
"webpack-dev-server": "^3.3.0",
"webpack-dev-server": "^v4.0.0-beta.0",
"webpack-manifest-plugin": "^3.0.0-rc.0",
"webpack-merge": "^5.3.0",
"workbox-webpack-plugin": "^6.0.0-alpha.3"
Expand All @@ -127,8 +128,8 @@
"scripts": {
"build": "webpack --config webpack.prod.js --progress",
"check-types": "tsc",
"debug": "webpack serve --config webpack.dev.js",
"dev": "webpack serve --config webpack.dev.js",
"debug": "nodemon",
"dev": "nodemon",
"lint": "tsc --noEmit && eslint '../../src/**/*.{js,ts,vue}' --fix"
},
"version": "1.1.3"
Expand Down
3 changes: 3 additions & 0 deletions buildchain/webpack-configs/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ module.exports = (type = 'modern', settings) => {
path.resolve(__dirname, '../node_modules'),
],
},
stats: {
colors: true,
},
});
// configs
const configs = {
Expand Down
22 changes: 14 additions & 8 deletions buildchain/webpack-configs/dev-server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ module.exports = (type = 'modern', settings) => {
// common config
const common = () => ({
devServer: {
contentBase: path.resolve(__dirname, settings.contentBase()),
disableHostCheck: true,
client: {
progress: false,
},
dev: {
publicPath: '/',
},
firewall: false,
headers: {
'Access-Control-Allow-Origin': '*'
},
Expand All @@ -23,11 +28,13 @@ module.exports = (type = 'modern', settings) => {
overlay: true,
port: settings.port(),
public: settings.public(),
publicPath: '/',
watchContentBase: true,
watchOptions: {
poll: !!parseInt(settings.poll()),
ignored: /node_modules/,
static: {
directory: path.resolve(__dirname, settings.contentBase()),
publicPath: '/',
watch: {
poll: !!parseInt(settings.poll()),
ignored: /node_modules/,
},
},
},
devtool: false,
Expand All @@ -48,7 +55,6 @@ module.exports = (type = 'modern', settings) => {
exclude: /\.(pcss|css)($|\?)/i,
}),
],
target: 'web',
});
// configs
const configs = {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "craftcms/craft",
"description": "nystudio107 Craft 3.4 CMS scaffolding project",
"version": "2.4.7",
"version": "2.4.8",
"keywords": [
"craft",
"cms",
Expand Down

0 comments on commit c2dbac4

Please sign in to comment.