UNPKG

964 BJavaScriptView Raw
1const path = require('path')
2require('core-js');
3const env = {
4 'development': './config/webpack.config.dev.js',
5 'production': './config/webpack.config.prod.js'
6}
7console.log(env[process.env.NODE_ENV])
8module.exports = {
9 title: 'Mirage - ROA Pattern Library',
10 webpackConfig: require(env[process.env.NODE_ENV]),
11 components: 'src/**/*.{js,jsx,ts,tsx}',
12 styleguideComponents: {
13 Wrapper: path.join(__dirname, 'src/core/theme')
14 },
15 theme: {
16 maxWidth: 'auto'
17 },
18 template: {
19 favicon: '//res.cloudinary.com/roa-canon/image/upload/v1508867160/favicon.ico',
20 head: {
21 scripts: [
22 {src: 'https://use.typekit.net/bfw8xpa.js'},
23 {src: 'src/theme/typekit.js'}
24 ]
25 }
26 },
27 ignore: [
28 'src/index.js',
29 '**/index.js',
30 'src/setupTests.js',
31 '**/theme/**/*.{js,jsx,ts,tsx}',
32 '**/defaultProps.{js,jsx,ts,tsx}',
33 '**/*.test.{js,jsx,ts,tsx}',
34 '**/*.base.{js,jsx,ts,tsx}'
35 ],
36 pagePerSection: true
37}