Skip to content

Commit

Permalink
Working webpack.LoaderOptionsPlugin for Webpack 2 😧 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Sep 28, 2016
1 parent f73b652 commit 1b84f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions scripts/make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ module.exports = function(config, env) {
},
plugins: [
new webpack.LoaderOptionsPlugin({
minimize: isProd,
debug: !isProd,
options: {
styleguidist: config,
},
styleguidist: config,
minimize: isProd,
debug: !isProd,
}),
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (module.hot) {
}

// Load style guide
let { config, components, sections } = require('styleguide!');
let { config, components, sections } = require('styleguide!index.js');

function processComponents(components) {
components = flattenChildren(components);
Expand Down

0 comments on commit 1b84f1e

Please sign in to comment.