oveio / craft4_starter
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: >=8.0.2
- craftcms/cms: ^4.0.0
- leowebguy/mix-manifest: 1.0.1
- vlucas/phpdotenv: ^5.4.0
Requires (Dev)
- yiisoft/yii2-shell: ^2.0.3
README
OVEIO Craft 4 Starter provides a quick-start project scaffold for Craft CMS websites. It uses Laravel Mix to build front-end assets.
Usage
Create your .env file
cp .env.example .env
Fill in .env with your local database settings and provide the URL from which the application will be served.
composer install npm install php craft setup
The craft setup wizard will guide you through the process of installing the CMS.
Running development build server
npx mix watch
Mix will watch you templates and scss/js files and build them whenever they change. BrowserSync will watch the built files and hot-update for assets or reload for templates.
Using built assets
The mix plugin is included by default and provides an easy way to include your compiled assets in your templates.
<link rel="stylesheet" href="{{ mix('/css/app.css') }}"> <script src="{{ mix('/js/app.js') }}"></script>
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.