removeddit/webpack.config.js

23 lines
434 B
JavaScript
Raw Permalink Normal View History

const path = require('path')
module.exports = (env, argv) => ({
entry: [
'whatwg-fetch',
'./src/index.js'
],
devServer: {
2021-10-06 21:57:36 +00:00
static: path.resolve(__dirname, 'dist'),
historyApiFallback: true
},
2021-10-06 21:57:36 +00:00
devtool: argv.mode !== 'production' ? 'eval-cheap-module-source-map' : false,
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader'
}
]
}
})