You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
Hello again. This is going to be a bit tricky to explain but I will give it a go in a reduced test case form...
someSnippet.js
varexpress=require('express');varminify=require('express-minify');varapp=express();/* * Bunch of other express specific intialization and then... */express.static.mime.define({'text/less': ['less']});/* * Use minify */app.use(minify());
Did I do something incorrectly with express-minify initialization?
Do you support the @import statement? Currently we are using the less-middleware package to achieve support.
If you do support the @import statement we are going to need some exposure to the paths option in less too probably similar to Keep comments? #15 e.g. we currently pick through a series of .less files at different paths in our project tree and import them into our own .less from a different path.
As long as we don't use the @import statement and keep all variables and mixins in the same file express-minify works with less parsing and compiling... however splitting them out doesn't seem to.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hello again. This is going to be a bit tricky to explain but I will give it a go in a reduced test case form...
someSnippet.js
someSnippet.html
source1.less
source2.less
Produces the following output at our http://localhost:8080/source1.less:
... instead of the expected ...
@import
statement? Currently we are using the less-middleware package to achieve support.@import
statement we are going to need some exposure to thepaths
option in less too probably similar to Keep comments? #15 e.g. we currently pick through a series of.less
files at different paths in our project tree and import them into our own.less
from a different path.As long as we don't use the
@import
statement and keep all variables and mixins in the same file express-minify works with less parsing and compiling... however splitting them out doesn't seem to.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: