gdbgui/webpack.config.js
2019-07-25 15:30:15 -07:00

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']
}
}