UNPKG

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