bffd04906b
Signed-off-by: prescientmoon <git@moonythm.dev>
38 lines
836 B
JavaScript
38 lines
836 B
JavaScript
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
|
// const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
|
|
module.exports = {
|
|
devtool: 'inline-source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.html$/,
|
|
use: [
|
|
{
|
|
loader: "html-loader"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new HtmlWebPackPlugin({
|
|
template: "./src/index.html",
|
|
filename: "./index.html"
|
|
})
|
|
],
|
|
resolve: {
|
|
extensions: [
|
|
".js",
|
|
".ts"
|
|
]
|
|
},
|
|
entry: [
|
|
"./src/index.ts"
|
|
]
|
|
}; |