add: template editor

This commit is contained in:
h z
2025-04-14 17:02:22 +01:00
parent 09338a2683
commit 947b59e3ea
29 changed files with 1277 additions and 166 deletions

View File

@@ -1,6 +1,6 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
@@ -29,6 +29,10 @@ module.exports = {
template: "./public/index.html",
inject: true
}),
new webpack.ProvidePlugin({
process: 'process/browser'
})
],
devServer: {
static: path.join(__dirname, 'public'),
@@ -36,5 +40,14 @@ module.exports = {
open: true,
hot: true,
historyApiFallback: true,
}
},
resolve: {
fallback: {
path: require.resolve('path-browserify'),
fs: false,
assert: require.resolve("assert/"),
process: require.resolve("process/browser"),
}
},
devtool: 'source-map',
};