@elliemae/pui-cli 6.0.0-beta.16 → 6.0.0-beta.17

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.
package/lib/esbuild.js CHANGED
@@ -1,7 +1,6 @@
1
1
  const esbuild = require('esbuild');
2
2
  const fg = require('fast-glob');
3
3
  const fs = require('fs');
4
- const svgrPlugin = require('esbuild-plugin-svgr');
5
4
 
6
5
  const ESBUILD_TARGET = 'es2020';
7
6
 
@@ -10,7 +9,6 @@ const commonConfig = {
10
9
  target: ESBUILD_TARGET,
11
10
  loader: { '.js': 'jsx' },
12
11
  mainFields: ['module', 'browser', 'main'],
13
- plugins: [svgrPlugin()],
14
12
  };
15
13
 
16
14
  const distFolder = 'dist';
@@ -7,6 +7,7 @@ const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack
7
7
  const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
8
8
  const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
9
9
  const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
10
+ const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
10
11
  const { ProvidePlugin } = require('webpack');
11
12
 
12
13
  const {
@@ -18,7 +19,6 @@ const {
18
19
  } = require('./helpers');
19
20
  const { ESBUILD_TARGET } = require('../esbuild');
20
21
 
21
- // get the application configuration
22
22
  const minicssLoader = {
23
23
  loader: MiniCssExtractPlugin.loader,
24
24
  options: {},
@@ -31,9 +31,6 @@ const postcssPlugins = [PostcssPresetEnv({ autoprefixer: { grid: true } })];
31
31
  const { buildPath, publicPath } = getPaths();
32
32
 
33
33
  const plugins = [
34
- // Always expose NODE_ENV to webpack, in order to use `process.env.NODE_ENV`
35
- // inside your code for any environment checks; Terser will automatically
36
- // drop any unreachable code.
37
34
  new webpack.EnvironmentPlugin({
38
35
  NODE_ENV: 'development',
39
36
  ASSET_PATH: '/',
@@ -44,7 +41,6 @@ const plugins = [
44
41
  APP_CONFIG: getAppConfig(),
45
42
  }),
46
43
  new CaseSensitivePathsPlugin(),
47
- // new ESLintPlugin(),
48
44
  new ProvidePlugin({
49
45
  React: 'react',
50
46
  }),
@@ -104,6 +100,18 @@ const plugins = [
104
100
  new DuplicatePackageCheckerPlugin(),
105
101
  new MomentLocalesPlugin(),
106
102
  new WebpackManifestPlugin(),
103
+ new FaviconsWebpackPlugin({
104
+ logo: './app/view/images/favicon.png',
105
+ manifest: null,
106
+ favicons: {
107
+ developerName: 'ICE MT',
108
+ developerURL: null, // prevent retrieving from the nearest package.json
109
+ icons: {
110
+ coast: false,
111
+ yandex: false,
112
+ },
113
+ },
114
+ }),
107
115
  ];
108
116
 
109
117
  module.exports = (options) => ({
@@ -111,7 +119,6 @@ module.exports = (options) => ({
111
119
  entry: options.entry,
112
120
  output: {
113
121
  clean: true,
114
- // Compile into js/build.js
115
122
  path: buildPath,
116
123
  publicPath,
117
124
  ...options.output,
@@ -120,7 +127,7 @@ module.exports = (options) => ({
120
127
  module: {
121
128
  rules: [
122
129
  {
123
- test: /\.(jpe?g|png|gif|svg|ico)$/,
130
+ test: /\.(jpe?g|png|gif|ico)$/,
124
131
  use: [
125
132
  'file-loader',
126
133
  {
@@ -213,10 +220,6 @@ module.exports = (options) => ({
213
220
  exclude: excludeNodeModulesExcept(['@elliemae/*']),
214
221
  type: 'asset/resource',
215
222
  },
216
- {
217
- type: 'asset',
218
- resourceQuery: /url/, // *.svg?react
219
- },
220
223
  {
221
224
  test: /\.svg$/i,
222
225
  issuer: /\.[jt]sx?$/,
@@ -236,6 +239,10 @@ module.exports = (options) => ({
236
239
  resourceQuery: /resource/,
237
240
  type: 'asset/resource',
238
241
  },
242
+ {
243
+ type: 'asset',
244
+ resourceQuery: /url/,
245
+ },
239
246
  ],
240
247
  },
241
248
  plugins: plugins.concat(options.plugins),
@@ -63,7 +63,7 @@ const getModuleRules = () => [
63
63
  },
64
64
  {
65
65
  type: 'asset',
66
- resourceQuery: /url/, // *.svg?react
66
+ resourceQuery: /url/,
67
67
  },
68
68
  {
69
69
  test: /\.svg$/i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0-beta.16",
3
+ "version": "6.0.0-beta.17",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,
@@ -155,6 +155,7 @@
155
155
  "execa": "~5.1.1",
156
156
  "express": "~4.17.1",
157
157
  "express-pino-logger": "~7.0.0",
158
+ "favicons-webpack-plugin": "~5.0.2",
158
159
  "file-loader": "~6.2.0",
159
160
  "fork-ts-checker-webpack-plugin": "~6.5.0",
160
161
  "helmet-csp": "~3.4.0",