1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-11 09:45:24 +01:00
Pinafore-Web-Client-Frontend/webpack/shared.config.js

19 lines
379 B
JavaScript
Raw Normal View History

const mode = process.env.NODE_ENV
const dev = mode === 'development'
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'
}
}
module.exports = {
mode,
dev,
resolve
}