Skip to content

Commit

Permalink
Fixed npm2 compatibility (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Dadela committed Apr 21, 2016
1 parent 9d80280 commit 7e182ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function getPackagePath(packageName) {
function validateWebpackConfig(webpackConfig) {
webpackConfig.module.loaders.forEach(function(loader) {
if (!loader.include && !loader.exclude) {
throw Error('Styleguidist: "include" option is missed for ' + loader.test + ' Webpack loader.');
throw Error('Styleguidist: "include" option is missing for ' + loader.test + ' Webpack loader.');
}
});
}
Expand Down Expand Up @@ -68,10 +68,9 @@ module.exports = function(env) {
module: {
loaders: [
{
test: /\.json$/,
include: [
getPackagePath('entities')
],
// TODO: remove this when entities module is fixed (https://github.com/fb55/entities/pull/26)
test: /node_modules\/entities\/.*\.json$/,
include: /node_modules/,
loader: 'json'
},
{
Expand Down

0 comments on commit 7e182ba

Please sign in to comment.