Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. const path = require('path');
  2.  
  3. module.exports = {
  4. title: 'Kamstup Application Library',
  5. template: 'docs/templates/index.html',
  6. sections: [
  7. {
  8. name: 'Introduction',
  9. content: 'docs/introduction.md'
  10. }, {
  11. name: 'Components',
  12. content: 'docs/components.md',
  13. components: 'src/components/**/*.js'
  14. }, {
  15. name: 'Utilities',
  16. content: 'src/utility/i18n/README.md'
  17. }
  18. ],
  19. showCode: false,
  20. defaultExample: true,
  21. // components: './src/components/**/*.js',
  22. updateWebpackConfig(webpackConfig) {
  23. const dir = path.resolve(__dirname, './src');
  24. webpackConfig.module.loaders.push({
  25. test: /\.jsx?$/,
  26. include: dir,
  27. loader: 'babel'
  28. }, {
  29. test: /\.css$/,
  30. include: dir,
  31. loader: 'style!css?modules&importLoaders=1'
  32. });
  33. return webpackConfig;
  34. }
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement