Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change dist #146

Open
neesonqk opened this issue Apr 15, 2017 · 1 comment
Open

Cannot change dist #146

neesonqk opened this issue Apr 15, 2017 · 1 comment

Comments

@neesonqk
Copy link

I can only use the default setting, my file structure is like below,

-public
---assets
------less
------css

I can only use the default settting, app.use(lessMiddleware(__dirname + '/public'));, it'll compile into less folder directly.

if changed to below, it never works anymore and has nothing outputted.

app.use(lessMiddleware('/less', {
  dest: '/css',
  pathRoot: path.join(__dirname, 'public/assets')
}));

What I want is to output the css file into the sibling folder css from less.

@Zoramite
Copy link
Member

Zoramite commented May 8, 2017

This should be working. See https://github.com/emberfeather/less.js-middleware/blob/master/test/test-middleware.js#L199-L211

Can you add debug: true to your code to see if it outputs anything helpful. It should show the paths being watched and some of the operations it does while compiling the less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants