mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-06 05:26:22 -07:00
24 lines
No EOL
424 B
JavaScript
Executable file
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"
|
|
}; |