mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Implemented different themes for Part-DB.
We use Bootswatch to provide different themed bootstrap CSS.
This commit is contained in:
parent
0ebc5bfdad
commit
0b69de332d
10 changed files with 157 additions and 7 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue