From 4f4a4cb747c60d6721190042d8fb98e7408bc03c Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 4 Jun 2021 22:15:16 +0200 Subject: [PATCH] Load jquery-textcomplete without script-loader Signed-off-by: David Mehren --- public/js/index.js | 2 ++ webpack.common.js | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 3ffcc58dd..c2b0b6bb4 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -11,6 +11,8 @@ import 'jquery-ui/themes/base/resizable.css' import Idle from 'Idle.Js' +import '../vendor/jquery-textcomplete/jquery.textcomplete' + import { saveAs } from 'file-saver' import randomColor from 'randomcolor' import store from 'store' diff --git a/webpack.common.js b/webpack.common.js index 2a7decbee..3fc6be448 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -214,7 +214,6 @@ module.exports = { index: [ 'babel-polyfill', 'expose-loader?exposes=LZString!lz-string', - 'script-loader!jqueryTextcomplete', 'script-loader!ot', 'flowchart.js', 'js-sequence-diagrams', @@ -257,7 +256,6 @@ module.exports = { 'expose-loader?exposes=emojify!emojify.js', 'script-loader!gist-embed', 'expose-loader?exposes=LZString!lz-string', - 'script-loader!jqueryTextcomplete', 'script-loader!ot', 'flowchart.js', 'js-sequence-diagrams', @@ -352,7 +350,6 @@ module.exports = { modules: ['node_modules'], extensions: ['.js'], alias: { - jqueryTextcomplete: path.join(__dirname, 'public/vendor/jquery-textcomplete/jquery.textcomplete.js'), ot: path.join(__dirname, 'public/vendor/ot/ot.min.js'), mermaid: path.join(__dirname, 'node_modules/mermaid/dist/mermaid.min.js'), handlebars: path.join(__dirname, 'node_modules/handlebars/dist/handlebars.min.js'),