Skip to content

Commit 161f1bd

Browse files
committed
Merge branch 'develop' into feature/server
2 parents f2a7819 + d1c0b86 commit 161f1bd

File tree

8 files changed

+17
-6
lines changed

8 files changed

+17
-6
lines changed

config/jest/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'\\.(scss|css)$': 'identity-obj-proxy',
99
},
1010
rootDir: '../..',
11+
testMatch: ['**/__tests__/**/*.js?(x)'],
1112
testPathIgnorePatterns: [
1213
'/node_modules/',
1314
],

config/webpack/app-base.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ module.exports = function configFactory(ops) {
110110
rules: [{
111111
/* Loads font resources from "src/assets/fonts" folder. */
112112
test: /\.(eot|otf|svg|ttf|woff2?)$/,
113-
include: [/src[/\\]assets[/\\]fonts/],
113+
include: [
114+
/node_modules/,
115+
/src[/\\]assets[/\\]fonts/,
116+
],
114117
loader: 'file-loader',
115118
options: {
116119
outputPath: '/fonts/',

config/webpack/app-development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = function configFactory(ops) {
3838
'process.env': {
3939
BABEL_ENV: JSON.stringify('development'),
4040
DEV_TOOLS: JSON.stringify(true),
41+
NODE_ENV: JSON.stringify('development'),
4142
},
4243
}),
4344
new webpack.HotModuleReplacementPlugin(),

config/webpack/app-production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = function configFactory(ops) {
3636
new webpack.DefinePlugin({
3737
'process.env': {
3838
BABEL_ENV: JSON.stringify('production'),
39+
NODE_ENV: JSON.stringify('production'),
3940
},
4041
}),
4142

config/webpack/lib-base.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ module.exports = function configFactory(ops) {
6464
* the original location of the font assets in
6565
* the library being build. */
6666
test: /\.(eot|otf|svg|ttf|woff2?)$/,
67-
include: [/src[/\\]assets[/\\]fonts/],
67+
include: [
68+
/node_modules/,
69+
/src[/\\]assets[/\\]fonts/,
70+
],
6871
loader: 'file-loader',
6972
options: {
7073
emitFile: false,

docs/webpack-config.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ mutation of the config object.
114114
- [`webpack-hot-middleware/client?reload=true`](https://github.com/glenjamin/webpack-hot-middleware)
115115
- Emulates the following environment variables:
116116
- **`BABEL_ENV`** — It is set to *development* to inform any
117-
interested code that it is running in dev mode.
117+
interested code that it is running in dev mode;
118118
- **`DEV_TOOLS`** — It is set to *true* to signal the code that
119119
Redux dev tools should be enabled;
120+
- **`NODE_ENV`** — It is set to *development*.
120121
- Adds the following plugins:
121122
- [HotModuleReplacementPlugin](https://webpack.js.org/plugins/hot-module-replacement-plugin/);
122123
- [NoEmitOnErrorsPlugin](https://webpack.js.org/plugins/no-emit-on-errors-plugin/);
@@ -128,7 +129,8 @@ mutation of the config object.
128129
it differs from that in the following:
129130
- *production* Babel environment is enforced;
130131
- Emulates the following environment variables:
131-
- **`BABEL_ENV`** — It is set to *production*.
132+
- **`BABEL_ENV`** — It is set to *production*;
133+
- **`NODE_ENV`** — It is set to *production*.
132134
- Adds the following plugins:
133135
- [OptimizeCssAssetsPlugin](https://www.npmjs.com/package/optimize-css-assets-webpack-plugin);
134136
- [UglifyJsPlugin](https://webpack.js.org/plugins/uglifyjs-webpack-plugin/).

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@
104104
"prepublishOnly": "npm run build",
105105
"test": "npm run lint && npm run jest"
106106
},
107-
"version": "0.2.0"
107+
"version": "0.2.2"
108108
}

0 commit comments

Comments
 (0)