mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
separate the wysiwyg field
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
|
||||
/* eslint-disable */
|
||||
const path = require('path');
|
||||
const {
|
||||
ProvidePlugin
|
||||
} = require('webpack');
|
||||
const { ProvidePlugin } = require('webpack');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const WebpackManifestPlugin = require('webpack-manifest-plugin').WebpackManifestPlugin;
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
/* eslint-disable */
|
||||
const path = require('path');
|
||||
const { ProvidePlugin } = require('webpack');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const WebpackManifestPlugin = require('webpack-manifest-plugin').WebpackManifestPlugin;
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
@@ -19,7 +20,7 @@ const config = [{
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js', '.tsx', '.jsx'],
|
||||
fallback: {
|
||||
"path": require.resolve("path-browserify")
|
||||
"path": require.resolve("path-browserify"),
|
||||
}
|
||||
},
|
||||
module: {
|
||||
@@ -69,7 +70,13 @@ const config = [{
|
||||
extensions: ['ts', 'tsx'],
|
||||
exclude: ['node_modules', 'dist'],
|
||||
emitWarning: false,
|
||||
})
|
||||
}),
|
||||
new ProvidePlugin({
|
||||
// Make a global `process` variable that points to the `process` package,
|
||||
// because the `util` package expects there to be a global variable named `process`.
|
||||
// Thanks to https://stackoverflow.com/a/65018686/14239942
|
||||
process: 'process/browser'
|
||||
}),
|
||||
],
|
||||
devServer: {
|
||||
compress: true,
|
||||
|
||||
Reference in New Issue
Block a user