Parse markdown using stimulus controller.

This commit is contained in:
Jan Böhmer 2022-03-06 14:54:08 +01:00
parent b9a86c6a59
commit f3680ea7de
4 changed files with 72 additions and 5 deletions

View file

@ -98,7 +98,7 @@ Encore
//.enableSassLoader()
// uncomment if you use TypeScript
.enableTypeScriptLoader()
//.enableTypeScriptLoader()
// uncomment if you use React
//.enableReactPreset()
@ -124,9 +124,19 @@ Encore
// uncomment if you're having problems with a jQuery plugin
.autoProvidejQuery()
;
//Copy bootstrap map if in debug mode
if (Encore.isDev()) {
Encore.addPlugin(new CopyPlugin({
patterns: [
{
from: 'node_modules/bootstrap/dist/css/bootstrap.min.css.map',
to: 'themes/bootstrap.min.css.map'
}
]}))
}
if (Encore.isProduction()) {
Encore.addPlugin(new CompressionPlugin({
filename: '[path][base].br',
@ -151,7 +161,7 @@ if (Encore.isProduction()) {
if (Encore.isDev()) {
//Only uncomment if needed, as this cause problems with Github actions (job does not finish)
//Encore.addPlugin(new BundleAnalyzerPlugin());
Encore.addPlugin(new BundleAnalyzerPlugin());
}