fix: summernote 최신 버전에서 jQuery require 우회

This commit is contained in:
2021-12-05 03:32:48 +09:00
parent c812e24d8f
commit d46d281dcf
+6
View File
@@ -5,6 +5,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
const { resolve } = require('path'); const { resolve } = require('path');
const CleanTerminalPlugin = require('clean-terminal-webpack-plugin'); const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
const { ESBuildMinifyPlugin } = require('esbuild-loader') const { ESBuildMinifyPlugin } = require('esbuild-loader')
const webpack = require('webpack');
module.exports = (env, argv) => { module.exports = (env, argv) => {
const target = env.target ?? 'hwe'; const target = env.target ?? 'hwe';
const mode = argv.mode ?? 'production'; const mode = argv.mode ?? 'production';
@@ -270,6 +271,11 @@ module.exports = (env, argv) => {
cache: { cache: {
type: 'filesystem', type: 'filesystem',
}, },
externals: {
// require("jquery") is external and available
// on the global var jQuery
"jQuery": "jquery"
}
}; };
const gateway = { const gateway = {
name: 'gateway', name: 'gateway',