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

feat(estatico-sass): add custom importer for CSS files #94

Open
wants to merge 97 commits into
base: develop
Choose a base branch
from

Conversation

backflip
Copy link
Collaborator

@backflip backflip commented Dec 12, 2018

This will fix the DEPRECATION WARNING Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass. Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

Instead of using the external plugin mentioned in #45, I went for a solution where we don't have to add a CSS: prefix to the import.

While being at it, I had to fix most tests since they broke after an update to fancy-log

backflip and others added 30 commits September 16, 2018 00:09
…unic#61)

* [Chore] estatico-boilerplate: Optimized global client-side namespace
* [Chore] estatico-boilerplate: Changed module class name
…ing in boilerplate, refactored styles accordingly
* [Change] estatico-boilerplate: Removed jQuery
* [Chore] estatico-qunit/estatico-svgsprite: Rewrote client-side code to remove ES2015 features
* [Fix] estatico-boilerplate: Added missing polyfills for IE11
* [Change] estatico-eslint: Added default config, added babel-eslint as parser
backflip and others added 24 commits November 1, 2018 09:50
Jest: Add puppeteer launch args for CI
 - @unic/estatico-boilerplate@1.5.0
 - @unic/estatico-jest@0.2.0
 - @unic/estatico-json-schema@0.2.0
 - @unic/estatico-puppeteer@0.0.14
 - @unic/estatico-qunit@0.0.10
 - @unic/estatico-sass@0.0.14
 - @unic/estatico-watch@0.0.12
 - @unic/estatico-webpack@0.0.20
 - @unic/estatico-boilerplate@1.5.1
 - @unic/estatico-boilerplate@1.5.2
 - @unic/estatico-jest@0.2.1
 - @unic/estatico-boilerplate@1.5.3
 - @unic/estatico-jest@0.2.2
 - @unic/estatico-boilerplate@1.5.4
 - @unic/estatico-jest@0.2.3
 - @unic/estatico-boilerplate@1.5.5
 - @unic/estatico-jest@0.2.4
@CLAassistant
Copy link

CLAassistant commented Dec 12, 2018

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ backflip
✅ orioltf
❌ Christian Sany


Christian Sany seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -6,7 +6,7 @@


// Reset / normalize styles
@import "../../../node_modules/normalize.css/normalize";
@import "../../../node_modules/normalize.css/normalize.css";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The importer only works for files ending with .css

@@ -263,10 +262,6 @@ gulp.task('css', () => {
'./src/',
'./src/assets/css/',
],
importer: [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the JSON importer to the task so we don't need it in the boilerplate.

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

Successfully merging this pull request may close these issues.

None yet

3 participants