Skip to content

Commit ec9e093

Browse files
committed
Minor tweak
1 parent 02a0a45 commit ec9e093

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

frontend/encore/installation.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ is the main config file for both Webpack and Webpack Encore:
5555
.. code-block:: javascript
5656
5757
var Encore = require('@symfony/webpack-encore');
58-
58+
5959
// Manually configure the runtime environment if not already configured yet by the "encore" command.
6060
// It's useful when you use tools that rely on webpack.config.js file.
61-
6261
if (!Encore.isRuntimeEnvironmentConfigured()) {
6362
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
6463
}
@@ -83,7 +82,7 @@ is the main config file for both Webpack and Webpack Encore:
8382
.addEntry('app', './assets/js/app.js')
8483
//.addEntry('page1', './assets/js/page1.js')
8584
//.addEntry('page2', './assets/js/page2.js')
86-
85+
8786
// When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
8887
.splitEntryChunks()
8988
@@ -103,26 +102,26 @@ is the main config file for both Webpack and Webpack Encore:
103102
.enableSourceMaps(!Encore.isProduction())
104103
// enables hashed filenames (e.g. app.abc123.css)
105104
.enableVersioning(Encore.isProduction())
106-
105+
107106
// enables @babel/preset-env polyfills
108107
.configureBabelPresetEnv((config) => {
109108
config.useBuiltIns = 'usage';
110109
config.corejs = 3;
111110
})
112-
111+
113112
// enables Sass/SCSS support
114113
//.enableSassLoader()
115114
116115
// uncomment if you use TypeScript
117116
//.enableTypeScriptLoader()
118-
117+
119118
// uncomment to get integrity="..." attributes on your script & link tags
120119
// requires WebpackEncoreBundle 1.4 or higher
121120
//.enableIntegrityHashes(Encore.isProduction())
122121
123122
// uncomment if you're having problems with a jQuery plugin
124123
//.autoProvidejQuery()
125-
124+
126125
// uncomment if you use API Platform Admin (composer require api-admin)
127126
//.enableReactPreset()
128127
//.addEntry('admin', './assets/js/admin.js')

0 commit comments

Comments
 (0)