jimmy/events (#6)
Co-authored-by: Jimmy Vargo <james@ayo.tokyo> Reviewed-on: ayo/website#6
This commit is contained in:
parent
83a0903155
commit
e3ddda951f
76 changed files with 564 additions and 1 deletions
|
|
@ -1,33 +0,0 @@
|
|||
const webpack = require('webpack');
|
||||
const config = require('./webpack.base.js');
|
||||
|
||||
module.exports = Object.assign(
|
||||
config,
|
||||
{
|
||||
mode: 'development',
|
||||
devtool: 'source-map', // compile source map to get better debug output (error file/line)
|
||||
cache: true, // caching already built files so unchanged files can be reuse when an other changes
|
||||
watch: true, // watch file change and automatically rebuild the application
|
||||
watchOptions:
|
||||
{
|
||||
ignored: /node_modules/ // avoid watching node_modules as it is usually huge, note that it can be useful when debugging packages
|
||||
},
|
||||
resolve:
|
||||
{
|
||||
// avoid warning caused by development mode (using dev inferno build)
|
||||
alias:
|
||||
{
|
||||
inferno: require.resolve('inferno/dist/index.dev.esm.js')
|
||||
}
|
||||
},
|
||||
plugins: config.plugins.concat([
|
||||
new webpack.DefinePlugin(
|
||||
{
|
||||
'process.env':
|
||||
{
|
||||
'DEBUG': true
|
||||
} // set a DEBUG flag that can be used in the scripts
|
||||
})
|
||||
])
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue