Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

webpack.config.js

24 lines501 Bytes

1const HtmlWebPackPlugin = require('html-webpack-plugin')
2​
3const htmlPlugin = new HtmlWebPackPlugin({
4 template: './public/index.html',
5 filename: './index.html',
6})
7​
8module.exports = {
9 module: {
10 rules: [
11 {
12 test: /\.(?:js|mjs|cjs|jsx)$/,
13 exclude: /node_modules/,
14 use: {
15 loader: 'babel-loader',
16 options: {
17 presets: ['@babel/preset-env', '@babel/preset-react'],
18 },
19 },
20 },
21 ],
22 },
23 plugins: [htmlPlugin],