prosky / nette-webpack
Webpack Bridge for Nette Framework
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:project
Requires
- php: >=7.2
- latte/latte: ^2.5
- nette/caching: ^3.0
- nette/di: ^3.0
- nette/http: ^3.0
- nette/schema: ^1.0
- nette/utils: ^3.0
This package is auto-updated.
Last update: 2025-03-07 04:10:11 UTC
README
#Nette Webpack Assets
Installation
- In config.neon add extension Extension.php
extensions: assets: Prosky\NetteWebpack\Extension
- Configure assets. For Example
Local Development configuration
assets: publicPath: /output/dev devPort: 8099 devServer: true
Development configuration
assets: publicPath: /output/dev
Production configuration
assets: publicPath: /output/prod
Default configuration
assets: macro: asset debugMode: %debugMode% wwwDir: %wwwDir% publicPath: null devServer: null manifest: manifest.json
Usage
<link type="text/css" href="{asset front.css}"> <script async src="{asset front.js}" type="application/javascript"></script>