mirror of
https://github.com/JosunLP/UserScriptProjectTemplate.git
synced 2025-12-16 02:30:05 +00:00
init
This commit is contained in:
parent
2fc6859169
commit
f61a73f2f6
10 changed files with 3151 additions and 1 deletions
24
webpack.config.js
Normal file
24
webpack.config.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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'),
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue