Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  - Add `url-loader` for `.svg` files
  - Fix `jest` preprocessor setting in `package.json`
  • Loading branch information
koistya committed Feb 9, 2015
1 parent 3099494 commit 6b4520a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"webpack-dev-server": "^1.7.0"
},
"jest": {
"rootDir": "src",
"scriptPreprocessor": "<rootDir>/node_modules/6to5-jest",
"rootDir": "./src",
"scriptPreprocessor": "../node_modules/6to5-jest",
"unmockedModulePathPatterns": [
"react"
]
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ var config = {
test: /\.png/,
loader: 'url-loader?limit=10000&mimetype=image/png'
},
{
test: /\.svg/,
loader: 'url-loader?limit=10000&mimetype=image/svg+xml'
},
{
test: /\.jsx?$/,
exclude: /node_modules/,
Expand Down

0 comments on commit 6b4520a

Please sign in to comment.