Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Re-implement raw CSS imports for the deprecation warning
Browse files Browse the repository at this point in the history
Raw CSS imports have been removed from LibSass. We need to opt into
the feature with `sass_option_push_import_extension`. We're must do
this to maintain BC. Any imported files with a `.css` extension will
produce a deprecation warning.

This commit should be reverted in v5. This would remove raw CSS
imports once and for all.
  • Loading branch information
xzyfer committed Apr 25, 2018
1 parent 7ec14df commit cc7301e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ int ExtractOptions(v8::Local<v8::Object> options, void* cptr, sass_context_wrapp
sass_option_set_precision(sass_options, Nan::To<int32_t>(Nan::Get(options, Nan::New("precision").ToLocalChecked()).ToLocalChecked()).FromJust());
sass_option_set_indent(sass_options, ctx_w->indent);
sass_option_set_linefeed(sass_options, ctx_w->linefeed);
sass_option_push_import_extension(sass_options, ".css");

v8::Local<v8::Value> importer_callback = Nan::Get(options, Nan::New("importer").ToLocalChecked()).ToLocalChecked();

Expand Down

0 comments on commit cc7301e

Please sign in to comment.