@henderea/static-site-builder 1.10.15 → 1.10.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.
|
@@ -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[/\\\\]/],
|
|
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[/\\\\]/],
|
|
182
182
|
use: [
|
|
183
183
|
require.resolve('thread-loader'),
|
|
184
184
|
{
|
|
@@ -196,7 +196,6 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
test: /\.js$/,
|
|
199
|
-
exclude: [/[/\\\\]public[/\\\\]/],
|
|
200
199
|
use: [
|
|
201
200
|
require.resolve('thread-loader'),
|
|
202
201
|
{
|
|
@@ -215,7 +214,6 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
215
214
|
},
|
|
216
215
|
{
|
|
217
216
|
test: /\.css$/,
|
|
218
|
-
exclude: [/[/\\\\]public[/\\\\]/],
|
|
219
217
|
use: [
|
|
220
218
|
'style-loader',
|
|
221
219
|
'css-loader',
|
|
@@ -229,7 +227,6 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
229
227
|
},
|
|
230
228
|
{
|
|
231
229
|
test: /\.scss$/,
|
|
232
|
-
exclude: [/[/\\\\]public[/\\\\]/],
|
|
233
230
|
use: [
|
|
234
231
|
'style-loader',
|
|
235
232
|
'css-loader',
|
|
@@ -248,7 +245,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
248
245
|
// its runtime that would otherwise processed through "file" loader.
|
|
249
246
|
// Also exclude `html` and `json` extensions so they get processed
|
|
250
247
|
// by webpack's internal loaders.
|
|
251
|
-
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json
|
|
248
|
+
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
|
|
252
249
|
options: {
|
|
253
250
|
name: '[name].[ext]'
|
|
254
251
|
}
|
|
@@ -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[/\\\\]/],
|
|
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[/\\\\]/],
|
|
290
290
|
use: [
|
|
291
291
|
require.resolve('thread-loader'),
|
|
292
292
|
{
|
|
@@ -301,7 +301,6 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
test: /\.js$/,
|
|
304
|
-
exclude: [/[/\\\\]public[/\\\\]/],
|
|
305
304
|
use: [
|
|
306
305
|
require.resolve('thread-loader'),
|
|
307
306
|
{
|
|
@@ -320,7 +319,6 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
320
319
|
},
|
|
321
320
|
{
|
|
322
321
|
test: /\.css$/,
|
|
323
|
-
exclude: [/[/\\\\]public[/\\\\]/],
|
|
324
322
|
use: [
|
|
325
323
|
MiniCssExtractPlugin.loader,
|
|
326
324
|
{
|
|
@@ -340,7 +338,6 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
340
338
|
},
|
|
341
339
|
{
|
|
342
340
|
test: /\.scss$/,
|
|
343
|
-
exclude: [/[/\\\\]public[/\\\\]/],
|
|
344
341
|
use: [
|
|
345
342
|
MiniCssExtractPlugin.loader,
|
|
346
343
|
{
|
|
@@ -374,7 +371,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
374
371
|
// its runtime that would otherwise processed through "file" loader.
|
|
375
372
|
// Also exclude `html` and `json` extensions so they get processed
|
|
376
373
|
// by webpack's internal loaders.
|
|
377
|
-
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json
|
|
374
|
+
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
|
|
378
375
|
options: {
|
|
379
376
|
name: '[name].[ext]'
|
|
380
377
|
}
|