wwwgjs:reloading_our_pages
→ grunt-contrib-reload
Plusieurs manières de l'intégrer. Direct via <script src=“”> mais signifie intégrer du code qu'on va enlever après, via plugin navigateur ou autre.
npm install grunt-contrib-connect --save-dev
//gruntfile.js
//nouvelle tâche
connect: {
server: {
options: {
hostname: 'localhost',
port: 3000,
base: 'builds/development/',
livereload: true,
},
},
},
(...)
watch: {
options: {
spaws: false,
livereload: true,
}
},
(...)
wwwgjs/reloading_our_pages.txt · Last modified: 2016/03/29 11:48 by leo