wulkanowy-web/frontend/webpack.config.js

26 lines
No EOL
598 B
JavaScript

const path = require("path")
module.exports = {
entry: {
login : "./src/login.js",
content : "./src/content.js",
accountManager: "./src/AccountManager.js"
},
module: {
rules: [
{
//"allowJs": true,
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [ '.tsx' ,'.jsx', '.ts', '.js' ],
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, "./static/frontend"),
},
};