Add security config user-checker and change config webpack.config.js
This commit is contained in:
@@ -49,6 +49,7 @@ security:
|
|||||||
path: /logout
|
path: /logout
|
||||||
switch_user: true
|
switch_user: true
|
||||||
# end of lines added by chill-bundles recipe
|
# 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
|
# Easy way to control access for large sections of your site
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
|
|||||||
+13
-6
@@ -94,19 +94,26 @@ module.exports = (async () => {
|
|||||||
Encore
|
Encore
|
||||||
.setOutputPath('public/build/')
|
.setOutputPath('public/build/')
|
||||||
.setPublicPath('/build')
|
.setPublicPath('/build')
|
||||||
.enableSassLoader()
|
.enableSassLoader(function (options) {
|
||||||
|
// If set to true, Sass won’t 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(() => {}, {
|
.enableVueLoader(() => {}, {
|
||||||
version: 3,
|
version: 3,
|
||||||
runtimeCompilerBuild: true,
|
|
||||||
})
|
})
|
||||||
.enableTypeScriptLoader(/*function (tsConfig){
|
.enableTypeScriptLoader(function (tsConfig){
|
||||||
tsConfig.appendTsSuffixTo = [/\.vue$/];
|
tsConfig.appendTsSuffixTo = [/\.vue$/];
|
||||||
tsConfig.appendTsxSuffixTo = [/\.vue$/];
|
tsConfig.appendTsxSuffixTo = [/\.vue$/];
|
||||||
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
|
// 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 = {strict: !Encore.isProduction()};
|
||||||
tsConfig.compilerOptions.paths = {"translator": [resolve(__dirname, "./assets/translator.ts")]};
|
// 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;
|
tsConfig.silent = false;
|
||||||
}*/)
|
})
|
||||||
//.enableForkedTypeScriptTypesChecking()
|
//.enableForkedTypeScriptTypesChecking()
|
||||||
.autoProvidejQuery()
|
.autoProvidejQuery()
|
||||||
.enableSourceMaps(!Encore.isProduction())
|
.enableSourceMaps(!Encore.isProduction())
|
||||||
@@ -129,7 +136,7 @@ module.exports = (async () => {
|
|||||||
;
|
;
|
||||||
|
|
||||||
Encore.addAliases({
|
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
|
// populate config with chill entries
|
||||||
|
|||||||
Reference in New Issue
Block a user