-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ability to merge webpack configurations
- Loading branch information
Bulfair, Matt
committed
Oct 24, 2017
1 parent
09c1050
commit 07d1f6d
Showing
8 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"name": "edition-node-webpack", | ||
"description": "A pure wrapper around patternlab-node core, the default pattern engine, and supporting frontend assets.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"dependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-preset-es2015": "^6.24.1", | ||
"copy-webpack-plugin": "^4.0.1", | ||
"event-hooks-webpack-plugin": "^1.0.0", | ||
"glob": "^7.1.2", | ||
"globby": "^6.1.0", | ||
"patternlab-node": "^2.11.0", | ||
"styleguidekit-assets-default": "^3.5.0", | ||
"styleguidekit-mustache-default": "^3.0.0", | ||
"webpack": "^3.5.6", | ||
"webpack-config-utils": "^2.3.0" | ||
"webpack-config-utils": "^2.3.0", | ||
"webpack-merge": "^4.1.0" | ||
}, | ||
"repository": "[email protected]:Comcast/patternlab-edition-node-webpack.git", | ||
"bugs": "https://github.com/Comcast/patternlab-edition-node-webpack/issues", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# _app | ||
|
||
Used to store your app specific files. | ||
Used to store your app specific files. | ||
|
||
## Includes | ||
|
||
**Custom Webpack Configuration** | ||
|
||
`webpack.app.js` this file is used to place your custom webpack configuration. This will merge or override the values in `webpack.config.babel.js` This will provide a way to change your configuration and still get updates in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const {getIfUtils} = require('webpack-config-utils'); | ||
|
||
module.exports = env => { | ||
const {ifProd, ifDev} = getIfUtils(env); | ||
|
||
const app = { | ||
//Custom webpack configuration goes here | ||
} | ||
return app; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters