Files
core/webpack.config.js
Tyson Green 1ea73bfc9d #516 Add Password Strength Bar
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')
2019-09-19 11:25:40 -07:00

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();