Implemented different themes for Part-DB.

We use Bootswatch to provide different themed bootstrap CSS.
This commit is contained in:
Jan Böhmer 2019-10-13 17:48:18 +02:00
parent 0ebc5bfdad
commit 0b69de332d
10 changed files with 157 additions and 7 deletions

View file

@ -1,4 +1,5 @@
var Encore = require('@symfony/webpack-encore');
const CopyPlugin = require('copy-webpack-plugin');
Encore
// directory where compiled assets will be stored
@ -51,6 +52,18 @@ Encore
// uncomment if you're having problems with a jQuery plugin
.autoProvidejQuery()
.addPlugin(new CopyPlugin([
{
from: 'node_modules/bootswatch/dist/*/*.min.css',
to: 'themes/[2].[ext]',
test: /.*([\/\\])(.+)([\/\\]).*\.css$/
},
{
from: 'node_modules/bootstrap/dist/css/bootstrap.min.css',
to: 'themes/bootstrap.css'
}
]))
// uncomment if you use API Platform Admin (composer req api-admin)
//.enableReactPreset()
//.addEntry('admin', './assets/js/admin.js')