2021-02-03 11:48:54 +01:00
|
|
|
const path = require("path")
|
2021-01-23 12:23:24 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
2021-02-03 11:48:54 +01:00
|
|
|
login : "./src/login.js",
|
|
|
|
content : "./src/content.js"
|
|
|
|
},
|
2021-01-23 12:23:24 +01:00
|
|
|
output: {
|
2021-02-03 11:48:54 +01:00
|
|
|
filename : "[name].js",
|
|
|
|
path : path.resolve(__dirname, "./static/frontend")
|
2021-01-23 12:23:24 +01:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
2021-02-03 11:48:54 +01:00
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
2021-01-23 12:23:24 +01:00
|
|
|
use: {
|
2021-02-03 11:48:54 +01:00
|
|
|
loader: "babel-loader"
|
2021-01-23 12:23:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-02-03 11:48:54 +01:00
|
|
|
};
|