@henderea/static-site-builder 1.10.13 → 1.10.15
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.
|
@@ -152,7 +152,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
152
152
|
),
|
|
153
153
|
extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
|
|
154
154
|
plugins: resolvePlugins,
|
|
155
|
-
roots: [paths.appPath
|
|
155
|
+
roots: [paths.appPath/*, paths.publicDir*/],
|
|
156
156
|
},
|
|
157
157
|
module: {
|
|
158
158
|
strictExportPresence: true,
|
|
@@ -166,7 +166,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
166
166
|
...extraLoaders,
|
|
167
167
|
{
|
|
168
168
|
test: /\.ts$/,
|
|
169
|
-
exclude: [/[/\\\\]node_modules[/\\\\]/,
|
|
169
|
+
exclude: [/[/\\\\]node_modules[/\\\\]/, /[/\\\\]public[/\\\\]/],
|
|
170
170
|
use: [
|
|
171
171
|
{
|
|
172
172
|
loader: require.resolve('ts-loader'),
|
|
@@ -178,7 +178,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
test: /\.js$/,
|
|
181
|
-
exclude: [/[/\\\\]node_modules[/\\\\]/,
|
|
181
|
+
exclude: [/[/\\\\]node_modules[/\\\\]/, /[/\\\\]public[/\\\\]/],
|
|
182
182
|
use: [
|
|
183
183
|
require.resolve('thread-loader'),
|
|
184
184
|
{
|
|
@@ -196,7 +196,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
test: /\.js$/,
|
|
199
|
-
exclude: [
|
|
199
|
+
exclude: [/[/\\\\]public[/\\\\]/],
|
|
200
200
|
use: [
|
|
201
201
|
require.resolve('thread-loader'),
|
|
202
202
|
{
|
|
@@ -215,7 +215,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
test: /\.css$/,
|
|
218
|
-
exclude: [
|
|
218
|
+
exclude: [/[/\\\\]public[/\\\\]/],
|
|
219
219
|
use: [
|
|
220
220
|
'style-loader',
|
|
221
221
|
'css-loader',
|
|
@@ -229,7 +229,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
test: /\.scss$/,
|
|
232
|
-
exclude: [
|
|
232
|
+
exclude: [/[/\\\\]public[/\\\\]/],
|
|
233
233
|
use: [
|
|
234
234
|
'style-loader',
|
|
235
235
|
'css-loader',
|
|
@@ -248,7 +248,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
248
248
|
// its runtime that would otherwise processed through "file" loader.
|
|
249
249
|
// Also exclude `html` and `json` extensions so they get processed
|
|
250
250
|
// by webpack's internal loaders.
|
|
251
|
-
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/,
|
|
251
|
+
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/, /[/\\\\]public[/\\\\]/],
|
|
252
252
|
options: {
|
|
253
253
|
name: '[name].[ext]'
|
|
254
254
|
}
|
|
@@ -274,7 +274,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
274
274
|
...extraLoaders,
|
|
275
275
|
{
|
|
276
276
|
test: /\.ts$/,
|
|
277
|
-
exclude: [/[/\\\\]node_modules[/\\\\]/,
|
|
277
|
+
exclude: [/[/\\\\]node_modules[/\\\\]/, /[/\\\\]public[/\\\\]/],
|
|
278
278
|
use: [
|
|
279
279
|
{
|
|
280
280
|
loader: require.resolve('ts-loader'),
|
|
@@ -286,7 +286,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
test: /\.js$/,
|
|
289
|
-
exclude: [/[/\\\\]node_modules[/\\\\]/,
|
|
289
|
+
exclude: [/[/\\\\]node_modules[/\\\\]/, /[/\\\\]public[/\\\\]/],
|
|
290
290
|
use: [
|
|
291
291
|
require.resolve('thread-loader'),
|
|
292
292
|
{
|
|
@@ -301,7 +301,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
test: /\.js$/,
|
|
304
|
-
exclude: [
|
|
304
|
+
exclude: [/[/\\\\]public[/\\\\]/],
|
|
305
305
|
use: [
|
|
306
306
|
require.resolve('thread-loader'),
|
|
307
307
|
{
|
|
@@ -320,7 +320,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
test: /\.css$/,
|
|
323
|
-
exclude: [
|
|
323
|
+
exclude: [/[/\\\\]public[/\\\\]/],
|
|
324
324
|
use: [
|
|
325
325
|
MiniCssExtractPlugin.loader,
|
|
326
326
|
{
|
|
@@ -340,7 +340,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
test: /\.scss$/,
|
|
343
|
-
exclude: [
|
|
343
|
+
exclude: [/[/\\\\]public[/\\\\]/],
|
|
344
344
|
use: [
|
|
345
345
|
MiniCssExtractPlugin.loader,
|
|
346
346
|
{
|
|
@@ -374,7 +374,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
374
374
|
// its runtime that would otherwise processed through "file" loader.
|
|
375
375
|
// Also exclude `html` and `json` extensions so they get processed
|
|
376
376
|
// by webpack's internal loaders.
|
|
377
|
-
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/,
|
|
377
|
+
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/, /[/\\\\]public[/\\\\]/],
|
|
378
378
|
options: {
|
|
379
379
|
name: '[name].[ext]'
|
|
380
380
|
}
|