mirror of
https://github.com/JosunLP/UserScriptProjectTemplate.git
synced 2025-06-21 10:11:07 +00:00
24 lines
No EOL
542 B
JavaScript
24 lines
No EOL
542 B
JavaScript
const path = require('path');
|
|
const pkg = require('./package.json');
|
|
|
|
module.exports = {
|
|
entry: './src/index.ts',
|
|
devtool: 'inline-source-map',
|
|
mode: 'development',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
},
|
|
output: {
|
|
filename: pkg.name + '.bundle.js',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
},
|
|
}; |