2019-03-03 04:02:06 +01:00
|
|
|
const svgs = require('../bin/svgs')
|
|
|
|
|
|
|
|
const inlineSvgs = svgs.filter(_ => _.inline).map(_ => `#${_.id}`)
|
|
|
|
const mode = process.env.NODE_ENV || 'production'
|
2018-12-16 04:21:20 +01:00
|
|
|
const dev = mode === 'development'
|
|
|
|
|
2018-12-18 09:43:51 +01:00
|
|
|
const resolve = {
|
|
|
|
extensions: ['.js', '.json', '.html'],
|
|
|
|
mainFields: ['svelte', 'module', 'browser', 'main'],
|
|
|
|
alias: {
|
|
|
|
'react': 'inferno-compat',
|
|
|
|
'react-dom': 'inferno-compat',
|
|
|
|
'inferno': dev ? 'inferno/dist/index.dev.esm.js' : 'inferno'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-16 04:21:20 +01:00
|
|
|
module.exports = {
|
|
|
|
mode,
|
2018-12-18 09:43:51 +01:00
|
|
|
dev,
|
2019-03-03 04:02:06 +01:00
|
|
|
resolve,
|
|
|
|
inlineSvgs
|
2018-12-16 04:21:20 +01:00
|
|
|
}
|