1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-06 05:26:22 -07:00
gochan/frontend/webpack.config.js
2023-05-13 23:46:41 -07:00

24 lines
No EOL
424 B
JavaScript
Executable file

const path = require('path');
module.exports = {
entry: './ts/gochan.ts',
module: {
rules: [{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
}],
},
resolve: {
extensions: ['.ts', '.js'],
"fallback": {
"path": require.resolve("path-browserify")
}
},
output: {
filename: "gochan.js",
path: path.resolve(__dirname, '../html/js/'),
},
devtool: "source-map",
mode: "production"
};