mirror of
https://github.com/jbcr/core.git
synced 2026-04-01 13:52:15 +02:00
Modified Password.vue to add optional ProgressBar Added zxcvbn library to test password strength Added library to templates that use it Changed Twig variable away from 'user' (overwrites logged in 'user')
38 lines
1005 B
JavaScript
38 lines
1005 B
JavaScript
const WebpackBar = require('webpackbar');
|
|
const Encore = require('@symfony/webpack-encore');
|
|
|
|
Encore.addPlugin(
|
|
new WebpackBar({
|
|
profile: Encore.isProduction(),
|
|
minimal: false,
|
|
}),
|
|
)
|
|
|
|
.setOutputPath('public/assets/')
|
|
.setPublicPath('/assets')
|
|
.setManifestKeyPrefix('assets')
|
|
|
|
.copyFiles({
|
|
from: './assets/static',
|
|
})
|
|
|
|
.cleanupOutputBeforeBuild()
|
|
.disableSingleRuntimeChunk()
|
|
.enableSourceMaps(!Encore.isProduction())
|
|
.enableVersioning(false)
|
|
|
|
.addEntry('bolt', './assets/js/bolt.js')
|
|
.addEntry('zxcvbn', './assets/js/zxcvbn.js')
|
|
.addStyleEntry('theme-default', './assets/scss/themes/default.scss')
|
|
.addStyleEntry('theme-light', './assets/scss/themes/light.scss')
|
|
.addStyleEntry('theme-dark', './assets/scss/themes/dark.scss')
|
|
.addStyleEntry('theme-woordpers', './assets/scss/themes/woordpers.scss')
|
|
|
|
.splitEntryChunks()
|
|
.autoProvidejQuery()
|
|
.enableVueLoader()
|
|
.enableSassLoader()
|
|
.enablePostCssLoader();
|
|
|
|
module.exports = Encore.getWebpackConfig();
|