@zohodesk/client_build_tool 0.0.22-exp.1 → 0.0.22-exp.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.configHtmlFileLoader = configHtmlFileLoader;
6
7
  exports.configHtmlTemplateLoader = configHtmlTemplateLoader;
7
8
 
8
9
  function configHtmlTemplateLoader(options) {
9
10
  return {
10
- test: /\.tmpl$|\.html$/,
11
+ test: /\.tmpl$/,
11
12
  use: [{
12
13
  loader: 'html-loader',
13
14
  options: {
@@ -15,4 +16,11 @@ function configHtmlTemplateLoader(options) {
15
16
  }
16
17
  }]
17
18
  };
19
+ }
20
+
21
+ function configHtmlFileLoader(options) {
22
+ return {
23
+ test: /\.html$/,
24
+ type: 'asset/source'
25
+ };
18
26
  }
@@ -48,7 +48,7 @@ function webpackConfigCreator(options) {
48
48
  module: {
49
49
  /* strictExportPresence for break the build when imported module not present in respective file */
50
50
  // strictExportPresence: true,
51
- rules: [...(0, _jsLoaders.jsLoaders)(options), ...(0, _tsLoaders.tsLoaders)(options), ...(0, _cssLoaders.cssLoaders)(options), (0, _configWebWorkerLoader.configWebWorkerLoader)(options), (0, _configHtmlTemplateLoader.configHtmlTemplateLoader)(options), ...(0, _assetLoaders.assetLoaders)(options), ...(0, _configCustomLoaders.configCustomLoaders)(options)]
51
+ rules: [...(0, _jsLoaders.jsLoaders)(options), ...(0, _tsLoaders.tsLoaders)(options), ...(0, _cssLoaders.cssLoaders)(options), (0, _configWebWorkerLoader.configWebWorkerLoader)(options), (0, _configHtmlTemplateLoader.configHtmlTemplateLoader)(options), (0, _configHtmlTemplateLoader.configHtmlFileLoader)(options), ...(0, _assetLoaders.assetLoaders)(options), ...(0, _configCustomLoaders.configCustomLoaders)(options)]
52
52
  },
53
53
  plugins: (0, _plugins.plugins)(options),
54
54
  externals: (0, _externals.externals)(options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.22-exp.1",
3
+ "version": "0.0.22-exp.2",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {