Skip to content

Commit d1c0b86

Browse files
committed
Updates Webpack configs
1 parent 124b4b6 commit d1c0b86

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

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/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,

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
@@ -91,5 +91,5 @@
9191
"prepublishOnly": "npm run build",
9292
"test": "npm run lint && npm run jest"
9393
},
94-
"version": "0.2.1"
94+
"version": "0.2.2"
9595
}

0 commit comments

Comments
 (0)