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