mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
38 lines
708 B
JavaScript
38 lines
708 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: [
|
|
'babel-polyfill',
|
|
'whatwg-fetch',
|
|
'./src/js/index.js',
|
|
],
|
|
output: {
|
|
path: path.resolve(__dirname, 'static'),
|
|
publicPath: '/',
|
|
},
|
|
devServer: {
|
|
contentBase: path.resolve(__dirname, 'static'),
|
|
historyApiFallback: true,
|
|
},
|
|
devtool: 'cheap-module-eval-source-map',
|
|
resolve: {
|
|
modules: [
|
|
path.resolve('./src/js'),
|
|
path.resolve('./node_modules'),
|
|
],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
cacheDirectory: true,
|
|
},
|
|
},
|
|
}
|
|
]
|
|
}
|
|
}
|