@elliemae/pui-cli 5.17.1 → 5.17.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
1
2
|
const webpack = require('webpack');
|
|
2
3
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
3
4
|
const PostcssPresetEnv = require('postcss-preset-env');
|
|
@@ -120,10 +121,19 @@ module.exports = (options) => ({
|
|
|
120
121
|
module: {
|
|
121
122
|
rules: [
|
|
122
123
|
{
|
|
123
|
-
test: /\.(jpe?g|png|gif|
|
|
124
|
-
|
|
124
|
+
test: /\.(jpe?g|png|gif|svg)$/,
|
|
125
|
+
use: [
|
|
126
|
+
'file-loader',
|
|
127
|
+
{
|
|
128
|
+
loader: 'image-webpack-loader',
|
|
129
|
+
options: {
|
|
130
|
+
gifsicle: {
|
|
131
|
+
enabled: false,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
],
|
|
125
136
|
enforce: 'pre',
|
|
126
|
-
// eslint-disable-next-line max-lines
|
|
127
137
|
},
|
|
128
138
|
{
|
|
129
139
|
test: /\.(js|ts|jsx|tsx)$/,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
1
2
|
const path = require('path');
|
|
2
3
|
const webpack = require('webpack');
|
|
3
4
|
const {
|
|
@@ -87,8 +88,18 @@ module.exports = (options) => ({
|
|
|
87
88
|
module: {
|
|
88
89
|
rules: [
|
|
89
90
|
{
|
|
90
|
-
test: /\.(jpe?g|png|gif|
|
|
91
|
-
|
|
91
|
+
test: /\.(jpe?g|png|gif|svg)$/,
|
|
92
|
+
use: [
|
|
93
|
+
'file-loader',
|
|
94
|
+
{
|
|
95
|
+
loader: 'image-webpack-loader',
|
|
96
|
+
options: {
|
|
97
|
+
gifsicle: {
|
|
98
|
+
enabled: false,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
],
|
|
92
103
|
enforce: 'pre',
|
|
93
104
|
},
|
|
94
105
|
{
|
|
@@ -118,7 +129,6 @@ module.exports = (options) => ({
|
|
|
118
129
|
loader: 'babel-loader',
|
|
119
130
|
options: {
|
|
120
131
|
cacheDirectory: true,
|
|
121
|
-
// eslint-disable-next-line max-lines
|
|
122
132
|
compact: !devMode,
|
|
123
133
|
...(options.babelQuery || {}),
|
|
124
134
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
1
2
|
const webpack = require('webpack');
|
|
2
3
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
3
4
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
@@ -59,8 +60,18 @@ const compressionPlugin = new CompressionPlugin({
|
|
|
59
60
|
|
|
60
61
|
const getModulePreRules = () => [
|
|
61
62
|
{
|
|
62
|
-
test: /\.(jpe?g|png|gif|
|
|
63
|
-
|
|
63
|
+
test: /\.(jpe?g|png|gif|svg)$/,
|
|
64
|
+
use: [
|
|
65
|
+
'file-loader',
|
|
66
|
+
{
|
|
67
|
+
loader: 'image-webpack-loader',
|
|
68
|
+
options: {
|
|
69
|
+
gifsicle: {
|
|
70
|
+
enabled: false,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
64
75
|
enforce: 'pre',
|
|
65
76
|
},
|
|
66
77
|
{
|
|
@@ -119,7 +130,6 @@ const getModuleRules = () => [
|
|
|
119
130
|
{
|
|
120
131
|
test: /\.(jpe?g|png|gif)$/i,
|
|
121
132
|
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
122
|
-
// eslint-disable-next-line max-lines
|
|
123
133
|
type: 'asset',
|
|
124
134
|
},
|
|
125
135
|
{
|