@@ -4,65 +4,65 @@ var CopyWebpackPlugin = require("copy-webpack-plugin");
44// Manually configure the runtime environment if not already configured yet by the "encore" command.
55// It's useful when you use tools that rely on webpack.config.js file.
66if ( ! Encore . isRuntimeEnvironmentConfigured ( ) ) {
7- Encore . configureRuntimeEnvironment ( process . env . NODE_ENV || "dev" ) ;
7+ Encore . configureRuntimeEnvironment ( process . env . NODE_ENV || "dev" ) ;
88}
99
1010Encore
11- // directory where compiled assets will be stored
12- . setOutputPath ( "build/" )
13- // public path used by the web server to access the output path
14- . setPublicPath ( "." )
15- // only needed for CDN's or sub-directory deploy
16- . setManifestKeyPrefix ( "build/" )
11+ // directory where compiled assets will be stored
12+ . setOutputPath ( "build/" )
13+ // public path used by the web server to access the output path
14+ . setPublicPath ( "." )
15+ // only needed for CDN's or sub-directory deploy
16+ . setManifestKeyPrefix ( "build/" )
1717
18- /*
19- * ENTRY CONFIG
20- *
21- * Add 1 entry for each "page" of your app
22- * (including one that's included on every page - e.g. "app")
23- *
24- * Each entry will result in one JavaScript file (e.g. app.js)
25- * and one CSS file (e.g. app.css) if your JavaScript imports CSS.
26- */
27- . addEntry ( "app" , "./assets/app.js" )
28- . addEntry ( "pdf" , "./assets/components/pdf/pdf.scss" )
18+ /*
19+ * ENTRY CONFIG
20+ *
21+ * Add 1 entry for each "page" of your app
22+ * (including one that's included on every page - e.g. "app")
23+ *
24+ * Each entry will result in one JavaScript file (e.g. app.js)
25+ * and one CSS file (e.g. app.css) if your JavaScript imports CSS.
26+ */
27+ . addEntry ( "app" , "./assets/app.js" )
28+ . addEntry ( "pdf" , "./assets/components/pdf/pdf.scss" )
2929
30- // Color templates
31- . addEntry ( "default" , "./assets/color-templates/default.scss" )
32- . addEntry ( "blue" , "./assets/color-templates/blue.scss" )
33- . addEntry ( "green" , "./assets/color-templates/green.scss" )
34- . addEntry ( "red" , "./assets/color-templates/red.scss" )
35- . addEntry ( "yellow" , "./assets/color-templates/yellow.scss" )
36- . addEntry ( "lightblue" , "./assets/color-templates/lightblue.scss" )
30+ // Color templates
31+ . addEntry ( "default" , "./assets/color-templates/default.scss" )
32+ . addEntry ( "blue" , "./assets/color-templates/blue.scss" )
33+ . addEntry ( "green" , "./assets/color-templates/green.scss" )
34+ . addEntry ( "red" , "./assets/color-templates/red.scss" )
35+ . addEntry ( "yellow" , "./assets/color-templates/yellow.scss" )
36+ . addEntry ( "lightblue" , "./assets/color-templates/lightblue.scss" )
3737
38- // When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
39- //.splitEntryChunks()
38+ // When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
39+ //.splitEntryChunks()
4040
41- // will require an extra script tag for runtime.js
42- // but, you probably want this, unless you're building a single-page app
43- . disableSingleRuntimeChunk ( )
41+ // will require an extra script tag for runtime.js
42+ // but, you probably want this, unless you're building a single-page app
43+ . disableSingleRuntimeChunk ( )
4444
45- /*
46- * FEATURE CONFIG
47- *
48- * Enable & configure other features below. For a full
49- * list of features, see:
50- * https://symfony.com/doc/current/frontend.html#adding-more-features
51- */
52- . cleanupOutputBeforeBuild ( )
53- . enableBuildNotifications ( )
54- . enableSourceMaps ( ! Encore . isProduction ( ) )
55- // enables hashed filenames (e.g. app.abc123.css)
56- //.enableVersioning(Encore.isProduction())
45+ /*
46+ * FEATURE CONFIG
47+ *
48+ * Enable & configure other features below. For a full
49+ * list of features, see:
50+ * https://symfony.com/doc/current/frontend.html#adding-more-features
51+ */
52+ . cleanupOutputBeforeBuild ( )
53+ . enableBuildNotifications ( )
54+ . enableSourceMaps ( ! Encore . isProduction ( ) )
55+ // enables hashed filenames (e.g. app.abc123.css)
56+ //.enableVersioning(Encore.isProduction())
5757
58- // enables @babel /preset-env polyfills
59- . configureBabelPresetEnv ( ( config ) => {
60- config . useBuiltIns = "usage" ;
61- config . corejs = 3 ;
62- } )
58+ // enables @babel /preset-env polyfills
59+ . configureBabelPresetEnv ( ( config ) => {
60+ config . useBuiltIns = "usage" ;
61+ config . corejs = 3 ;
62+ } )
6363
64- // enables Sass/SCSS support
65- . enableSassLoader ( ) ;
64+ // enables Sass/SCSS support
65+ . enableSassLoader ( ) ;
6666
6767// uncomment if you use TypeScript
6868//.enableTypeScriptLoader()
0 commit comments