Skip to content

All imports after some others CSS declaration should warn and be skipped. #176

@cedeber

Description

@cedeber

Everything worked on v7. Since v8 it doesn't work anymore.

@charset "utf-8";

:root {
    --fontFamily: 'Lato', sans-serif;
    --fontSize: 15px;
    /* ... */
}

@custom-media --medium-screen (width <= 1080px);
@custom-media --small-screen (width <= 580px);
@custom-media --tiny-screen (width <= 320px);

@import url(config/reset.css);
@import url(config/fonts.css);
@import url(config/default.css);
@import url(config/layout.css);
@import url(config/icons.css);

results to:

@charset "utf-8";
:root {}

@import url(config/reset.css);

/* ... */
/* the next files are all imported correctly */

Source files: https://github.com/Frontools/web-starter-kit/tree/master/source/styles
The build.js script is launched thanks to node scripts in https://github.com/Frontools/web-starter-kit/blob/master/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions