1 | const Encore = require('@symfony/webpack-encore'); |
||
2 | |||
3 | Encore |
||
4 | .setOutputPath('public/build/') |
||
5 | .copyFiles([ |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
6 | { |
||
7 | from: './assets/images', |
||
8 | to: './images/[path][name].[ext]', |
||
9 | }, |
||
10 | { |
||
11 | from: './assets/openconext/images', |
||
12 | to: './images/logo/[path][name].[ext]', |
||
13 | } |
||
14 | ]) |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
15 | .setPublicPath('/build') |
||
16 | .cleanupOutputBeforeBuild() |
||
17 | // Convert typescript files. |
||
18 | .enableTypeScriptLoader() |
||
19 | .enableLessLoader() |
||
20 | .addStyleEntry('global', [ |
||
0 ignored issues
–
show
|
|||
21 | './assets/scss/application.scss', |
||
22 | './vendor/surfnet/stepup-bundle/src/Resources/public/less/stepup.less' |
||
23 | ]) |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
24 | .addEntry('registration-print', './assets/typescript/registration-print.ts') |
||
25 | .addEntry('app', [ |
||
26 | './assets/typescript/app.ts', |
||
27 | './vendor/surfnet/stepup-bundle/src/Resources/public/js/stepup.js' |
||
28 | ]) |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
29 | |||
30 | // Convert sass files. |
||
31 | .enableSassLoader(function (options) { |
||
0 ignored issues
–
show
|
|||
32 | options.sassOptions = { |
||
33 | outputStyle: 'expanded', |
||
34 | includePaths: ['public'], |
||
35 | }; |
||
36 | }) |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
37 | .addLoader({test: /\.scss$/, loader: 'webpack-import-glob-loader'}) |
||
38 | .configureLoaderRule('eslint', loaderRule => { |
||
39 | loaderRule.test = /\.(jsx?|vue)$/ |
||
40 | }) |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
41 | .enableSingleRuntimeChunk() |
||
42 | .enableSourceMaps(!Encore.isProduction()) |
||
43 | // enables hashed filenames (e.g. app.abc123.css) |
||
44 | .enableVersioning(Encore.isProduction()) |
||
0 ignored issues
–
show
|
|||
45 | ; |
||
46 | |||
47 | |||
48 | module.exports = Encore.getWebpackConfig(); |
||
49 |