From 029769d483d9f1fdf911b6a3148dafe38822f7e9 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 15 Mar 2022 17:11:32 +0100 Subject: [PATCH] (WIP) fix loading angular templates --- config/webpack/modules/html.js | 7 +++++++ config/webpack/webpack.config.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config/webpack/modules/html.js b/config/webpack/modules/html.js index cd3506af1..05709d0a1 100644 --- a/config/webpack/modules/html.js +++ b/config/webpack/modules/html.js @@ -3,6 +3,13 @@ const path = require('path'); module.exports = { test: /\.html$/i, exclude: /node_modules/, + // type: 'asset/inline', + // generator: { + // dataUrl: { + // encoding: false, + // mimetype: 'application/javascript' + // } + // }, use: [ { loader: 'ngtemplate-loader', diff --git a/config/webpack/webpack.config.js b/config/webpack/webpack.config.js index 09e1c5879..08e5726a9 100644 --- a/config/webpack/webpack.config.js +++ b/config/webpack/webpack.config.js @@ -5,7 +5,7 @@ const path = require('path'); const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'); const htmlErb = require('./modules/html_erb'); -const js = require('./modules/js'); +// const js = require('./modules/js'); const jsErb = require('./modules/js_erb'); const sass = require('./modules/sass'); const sassErb = require('./modules/sass_erb'); @@ -40,7 +40,7 @@ const customConfig = { jsErb, htmlErb, sassErb, - js, + // js, html, sass, uiTour,