monorepo/kifu/kifu-pwa/webpack.config.js

24 lines
566 B
JavaScript

const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
mode: "development",
entry: {
"kifu-bundle": "./src/converter.ts",
sw: "./src/sw.js",
},
loader: {
rules: [
{ test: /.ts$/, use: "ts-loader", exclude: /node_modules/ },
{ test: /\.wasm$/, type: "asset/inline" }
],
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: "src/index.html" },
{ from: "src/converter.css" }
]
})
]
}