1 | var Encore = require('@symfony/webpack-encore'); |
||
2 | |||
3 | Encore |
||
4 | // the project directory where compiled assets will be stored |
||
5 | .setOutputPath('public/build/') |
||
6 | // the public path used by the web server to access the previous directory |
||
7 | .setPublicPath('/build') |
||
8 | .cleanupOutputBeforeBuild() |
||
9 | .enableSourceMaps(!Encore.isProduction()) |
||
10 | // uncomment to create hashed filenames (e.g. app.abc123.css) |
||
11 | .enableVersioning(Encore.isProduction()) |
||
12 | |||
13 | // uncomment to define the assets of the project |
||
14 | .addEntry('js/app', './assets/js/global.js') |
||
15 | .addStyleEntry('css/app', './assets/scss/global.scss') |
||
16 | .addStyleEntry('css/loginRegister', './assets/scss/paper/loginRegister.css') |
||
17 | |||
18 | // uncomment if you use Sass/SCSS files |
||
19 | .enableSassLoader(function(sassOptions) {}, { |
||
0 ignored issues
–
show
|
|||
20 | resolveUrlLoader: false |
||
21 | }) |
||
22 | |||
23 | // uncomment for legacy applications that require $/jQuery as a global variable |
||
24 | .autoProvidejQuery() |
||
25 | ; |
||
26 | |||
27 | module.exports = Encore.getWebpackConfig(); |
||
28 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.