Skip to content

vahidov/netteassets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

In first run search rev-manifest.json in the root of project and cache results to Nette-configurator file.

Base use

<script type="text/javascript" src="{asset "/js/default.js"}"></script>

In production mode that makes transformation and you see in resulted html <script type="text/javascript" src="//www.youserver.com/js/default-693eb2d376.js"></script>

In development mode used standart file name <script type="text/javascript" src="https://localhost:9090/js/default.js"></script>

Livereload

In latte template {livereloadscript}

In production mode return empty string ""

In development mode return <script type="text/javascript" src="//localhost:35729/livereload.js"></script>

config.neon

assets:
		manifestFile: rev-manifest.json
		scripthost: "https://localhost"
		scriptport: "9090"
		livereloadhost: "https://localhost"
		livereloadport: 35729

Scripthost, scriptport, livereloadhost, livereloadport may be empty. In this case used $_SERVER['HTTP_HOST'] for hosts and 80 for port values.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages