Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit d7cfce8

Browse files
committed
Исправляет правило для preload
1 parent 7bd2623 commit d7cfce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
entry: {
4343
bundle: './source/js/index.js',
4444
libs: ['picturefill'],
45-
style: './source/scss/style.scss'
45+
style: './source/scss/style.scss',
4646
},
4747
devtool: 'inline-source-map',
4848
devServer: {
@@ -104,7 +104,7 @@ module.exports = {
104104
}),
105105
new PreloadWebpackPlugin({
106106
rel: 'preload',
107-
include: 'allAssets', // or 'initial', or 'allAssets'
107+
include: 'allChunks', // or 'initial', or 'allAssets'
108108
}),
109109
new CopyWebpackPlugin({
110110
patterns: [

0 commit comments

Comments
 (0)