Add security config user-checker and change config webpack.config.js

This commit is contained in:
2026-07-10 12:07:24 +02:00
parent 8815d735e0
commit 136dba5257
2 changed files with 19 additions and 11 deletions
+1
View File
@@ -49,6 +49,7 @@ security:
path: /logout
switch_user: true
# end of lines added by chill-bundles recipe
user_checker: chill_security.user_checker
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
+18 -11
View File
@@ -94,19 +94,26 @@ module.exports = (async () => {
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.enableSassLoader()
.enableSassLoader(function (options) {
// If set to true, Sass wont print warnings that are caused by dependencies (like bootstrap):
// https://sass-lang.com/documentation/js-api/interfaces/options/#quietDeps
options.sassOptions.quietDeps = true;
options.sassOptions.silenceDeprecations = ['import'];
})
.enableVueLoader(() => {}, {
version: 3,
runtimeCompilerBuild: true,
})
.enableTypeScriptLoader(/*function (tsConfig){
tsConfig.appendTsSuffixTo = [/\.vue$/];
tsConfig.appendTsxSuffixTo = [/\.vue$/];
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
tsConfig.compilerOptions.paths = {"translator": [resolve(__dirname, "./assets/translator.ts")]};
tsConfig.silent = false;
}*/)
.enableTypeScriptLoader(function (tsConfig){
tsConfig.appendTsSuffixTo = [/\.vue$/];
tsConfig.appendTsxSuffixTo = [/\.vue$/];
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
// disable type checking in ts-loader: Vue files are already checked by vue-tsc,
// and the generated code (e.g. mergeModels) may use APIs not yet in the bundled @vue/runtime-core types.
// see https://github.com/vuejs/core/issues/10331#issuecomment-1938909170
tsConfig.transpileOnly = true;
tsConfig.silent = false;
})
//.enableForkedTypeScriptTypesChecking()
.autoProvidejQuery()
.enableSourceMaps(!Encore.isProduction())
@@ -129,7 +136,7 @@ module.exports = (async () => {
;
Encore.addAliases({
translator: resolve(__dirname, './vendor/chill-project/chill-bundles/assets/translator')
translator: resolve(__dirname, './vendor/chill-project/chill-bundles/assets/translator'),
});
// populate config with chill entries