add: template editor
This commit is contained in:
@@ -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',
|
||||
};
|
||||
Reference in New Issue
Block a user