mirror of
https://github.com/quepasaevents/qpa-client.git
synced 2023-12-14 05:33:02 +01:00
39 lines
827 B
TypeScript
39 lines
827 B
TypeScript
|
import * as webpack from 'webpack'
|
||
|
import * as path from "path"
|
||
|
import * as HtmlWebpackPlugin from 'html-webpack-plugin'
|
||
|
|
||
|
const config: webpack.Configuration = {
|
||
|
entry: './App/index.tsx',
|
||
|
resolve: {
|
||
|
extensions: [".js", ".jsx", ".ts", ".tsx"]
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
exclude: path.resolve(__dirname, "node_modules"),
|
||
|
test: /\.tsx?$/,
|
||
|
use: {
|
||
|
loader: "babel-loader",
|
||
|
options: {
|
||
|
presets: [
|
||
|
"@babel/typescript",
|
||
|
"@babel/react"
|
||
|
],
|
||
|
plugins: [].filter(Boolean)
|
||
|
}
|
||
|
}
|
||
|
} ]
|
||
|
},
|
||
|
devtool: '#@source-map',
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, './dist'),
|
||
|
filename: 'bundle.js'
|
||
|
},
|
||
|
plugins: [new HtmlWebpackPlugin({
|
||
|
title: "blabla",
|
||
|
})]
|
||
|
|
||
|
}
|
||
|
|
||
|
export default config
|