mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-11 17:59:20 +01:00
bbf5b7f0c6
* chore: update preact * fix preact
22 lines
489 B
JavaScript
22 lines
489 B
JavaScript
const svgs = require('../bin/svgs')
|
|
|
|
const inlineSvgs = svgs.filter(_ => _.inline).map(_ => `#${_.id}`)
|
|
const mode = process.env.NODE_ENV || 'production'
|
|
const dev = mode === 'development'
|
|
|
|
const resolve = {
|
|
extensions: ['.js', '.json', '.html'],
|
|
mainFields: ['svelte', 'module', 'browser', 'main'],
|
|
alias: {
|
|
'react': 'preact/compat/dist/compat.module.js',
|
|
'react-dom': 'preact/compat/dist/compat.module.js'
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
mode,
|
|
dev,
|
|
resolve,
|
|
inlineSvgs
|
|
}
|