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 was archived by the owner on Dec 17, 2024. It is now read-only.
I am attempting to use bundle-up with the latest version of stylus. Including only .css files works without issue (both with bundling enabled and disabled), but when I attempt to include a .styl file, I get errors. When bundling is disabled, I see that the browser performs the correct GET requests for the stylesheets:
mah.css
/generated/stylesheets
When bundling is enabled, I get a 'Maximum call stack size exceeded' error, and the application fails to start. It also references what looks like a stylus error message:
I am attempting to use bundle-up with the latest version of stylus. Including only .css files works without issue (both with bundling enabled and disabled), but when I attempt to include a .styl file, I get errors. When bundling is disabled, I see that the browser performs the correct GET requests for the stylesheets:
mah.css
/generated/stylesheets
When bundling is enabled, I get a 'Maximum call stack size exceeded' error, and the application fails to start. It also references what looks like a stylus error message:
'Range Error: C:\program files\nodejs\testapp\public\stylesheets\mah.styl:1
Here is what I am doing in code:
// /app.js
var app = express();
bundleUp(app, __dirname + '/assets', {
staticRoot: __dirname + '/public/',
staticUrlRoot: '/',
bundle: false,
minifyCss: false,
minifyJs: false
});
// /assets.js
module.exports = function (assets) {
assets.root = __dirname;
assets.addCss('/public/stylesheets/style.css');
assets.addCss('/public/stylesheets/mah.styl');
assets.addCss('/styles/mah2.styl');
};
// File structure
/public/stylesheets/style.css
/public/stylesheets/mah.styl
/styles/mah2.styl
Some other useful tidbits:
$ stylus -V
0.29.0
$ express -V
3.0.0rc4
Latest bundle-up version
Thanks!
The text was updated successfully, but these errors were encountered: