open-gaia / admin-bundle
使用美观的Sylius资源系统的管理包
v1.2.9
2023-10-13 13:09 UTC
Requires
- php: ^8.0
- sylius/grid-bundle: ^1.11
- sylius/resource-bundle: ^1.9
- sylius/ui-bundle: ^1.11
- symfony/webpack-encore-bundle: ^1.14
README
此管理包使用美观的SyliusResourceBundle来管理简单的CRUD操作,并使用Webpack Encore来管理资源。
配置
imports:
- { resource: "@GaiaAdminBundle/Resources/config/config.yaml" }
Webpack Encore
在项目 "package.json" 中添加 workspace
{
"workspaces": [
"./vendor/open-gaia/admin-bundle"
]
}
在项目 "webpack.config.js" 中添加
const Encore = require('@symfony/webpack-encore');
const adminConfig = require('./vendor/open-gaia/admin-bundle/webpack.config');
Encore.reset();
// config
module.exports = [Encore.getWebpackConfig(), config];