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

Commit cc7301e

Browse files
committedApr 25, 2018
Re-implement raw CSS imports for the deprecation warning
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.
1 parent 7ec14df commit cc7301e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/binding.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ int ExtractOptions(v8::Local<v8::Object> options, void* cptr, sass_context_wrapp
113113
sass_option_set_precision(sass_options, Nan::To<int32_t>(Nan::Get(options, Nan::New("precision").ToLocalChecked()).ToLocalChecked()).FromJust());
114114
sass_option_set_indent(sass_options, ctx_w->indent);
115115
sass_option_set_linefeed(sass_options, ctx_w->linefeed);
116+
sass_option_push_import_extension(sass_options, ".css");
116117

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

0 commit comments

Comments
 (0)
This repository has been archived.