Comments (1)
That's a good point, and it should be documented. The problem is that Stylus' @import foo.css
just compiles to the CSS @import foo.css
, and the only realistic way to accomodate that is to serve CSS files directly (as earlier iterations of connect-assets
did). But I'd rather not have that as the default, for a variety of reasons. Instead, you have two options available:
-
Rename your
.css
files to.styl
so that your@import
s do concatenation. (Recommended) -
Use connect-file-cache or another module to serve your CSS files directly, e.g.:
app.use require('connect-assets')(src: 'assets')
app.use require('connect-file-cache')(src: 'assets')
from connect-assets.
Related Issues (20)
- Assets path helper for Less files HOT 2
- Fails to compile compressed assets when using bourbon/sass (5.0.1) HOT 6
- Current `mincer` dependency references the deprecated `autoprefixer-core` HOT 3
- Upgrade uglify-js (security issues) HOT 1
- Take connect-assets to a next level: why the react community fights on webpack vs browserify? HOT 3
- gulp and browser-sync integration HOT 1
- command line --compile not working HOT 2
- error in compileing bootstrap LESS HOT 2
- Custom helper not defined error HOT 2
- Update csswring dependency version HOT 2
- Sourcemaps for combined js file HOT 10
- "Invalid mapping" when serving compiling bootstrap-sass via the css helper method HOT 5
- Is this repo unmaintained? HOT 2
- [SafetyColons] Cannot read property 'trimRight' of undefined when using 5.4.0 HOT 3
- Bring it up to date? HOT 1
- CLI documentation HOT 4
- In search of a new maintainer. HOT 5
- fingerprint different between two machines HOT 1
- Error using js or jsInline helper HOT 3
- Update dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect-assets.