mirror of
https://github.com/cs01/gdbgui
synced 2024-11-17 07:48:57 +01:00
43 lines
912 B
JavaScript
43 lines
912 B
JavaScript
const path = require('path');
|
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: './gdbgui/src/js/gdbgui.jsx',
|
|
devtool: 'source-map',
|
|
output: {
|
|
path: path.resolve(__dirname, 'gdbgui/static/js/'),
|
|
filename: 'build.js'
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.(j|t)sx?$/,
|
|
use: [
|
|
{
|
|
loader: 'ts-loader',
|
|
options: {
|
|
experimentalFileCaching: true,
|
|
experimentalWatchApi: true,
|
|
transpileOnly: true
|
|
}
|
|
},
|
|
{
|
|
loader: 'tslint-loader',
|
|
options: {
|
|
fix: true,
|
|
typeCheck: true
|
|
}
|
|
}
|
|
],
|
|
exclude: /node_modules/
|
|
}]
|
|
},
|
|
plugins: [
|
|
new ForkTsCheckerWebpackPlugin({
|
|
tslint: true,
|
|
tslintAutoFix: true
|
|
})
|
|
],
|
|
resolve: {
|
|
extensions: ['.js', '.ts', '.tsx']
|
|
}
|
|
}
|