This is not expected to work in standard server environment as it doesn't use any caching method. This is specificaly designed to work in Panels in Sketch and Photoshop.
npm install panel-static
path = require 'path'express = require 'express'panelStatic = require 'panel-static'directory = path.join(__dirname, 'public')app = express()app.use(panelStatic(directory))app.listen(PORT)
All files with extension
less would be processed on the fly.
You can manually force request to just serve static file by adding
raw param to url or you can disable only some features in your request. Use them as params in query string, for example
nobrowserifyto get raw js file
nobrowserifyto just compile Coffee Script and skip browserify
nocoffeeto get raw coffee file
nolessto get raw less file
nolesshatto not include LESS Hat