0.4.3 • Published 11 months ago
@castiron/webpack-config-factory v0.4.3
CIC Webpack Config Factory
A single webpack configuration for CIC projects.
Supported CMS
- October
- Wordpress
Install Instructions
yarn add @castiron/webpack-config-factory
- If there are any existing webpack config files, delete them.
- Copy the contents of the
/samples
directory into your project somewhere and update as needed. - Add a babel preset to
package.json
if desired.
"babel": {
"presets": [
"react-app"
]
},
- Add a browserslist definition to
package.json
if one is not already there.
"browserslist": [
"defaults"
],
- Update your scripts in
package.json
if needed to use the new config files.
Migrating babel polyfill to core-js
@babel/polyfill
is deprecated in favor of core-js
.
@babel/polyfill
used core-js
under the hood, so the migration process is very straightforward.
-import "@babel/polyfill";
+import "core-js/stable";
+import "regenerator-runtime/runtime";
Sample package.json
scripts
"scripts": {
"dev": "NODE_ENV=development WEBPACK_DEV_SERVER=true webpack-dev-server --config config/webpack/dev.conf.js",
"watch": "NODE_ENV=development webpack --watch --config config/webpack/prod.conf.js",
"build": "NODE_ENV=production webpack --bail --config config/webpack/prod.conf.js",
}
Development
- In this repo, run
yarn link
. - In your project, run
yarn link @castiron/webpack-config-factory
.
0.4.2-alpha.2
11 months ago
0.4.2-alpha.1
11 months ago
0.4.3-alpha.1
11 months ago
0.4.3-alpha.2
11 months ago
0.4.3-alpha.3
11 months ago
0.4.3
11 months ago
0.4.2
11 months ago
0.4.0-alpha.1
12 months ago
0.4.1-alpha.1
12 months ago
0.4.1
12 months ago
0.4.0
12 months ago
1.0.0-alpha.0
1 year ago
0.3.0
1 year ago
0.2.4
2 years ago
0.2.3-alpha.2
2 years ago
0.2.3-alpha.1
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.0.17-alpha.1
2 years ago
1.0.0-alpha.2
2 years ago
1.0.0-alpha.1
2 years ago
0.2.1-alpha.2
2 years ago
0.2.1-alpha.3
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.2.1-alpha.1
2 years ago
0.2.0-beta
2 years ago
0.2.0-beta.2
2 years ago
0.2.0-beta.1
2 years ago
0.1.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.0-alpha.1
2 years ago
0.0.16-alpha3
2 years ago
0.0.16-alpha2
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.16-alpha
2 years ago
0.0.15-beta-2
2 years ago
0.0.15-beta
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.12
3 years ago
0.0.12-alpha.1
3 years ago