Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

How can I keep the css order in the css file when I use extract-text-webpack-plugin? #200

Closed
@cage1618

Description

@cage1618

How can I keep the css order in the css file when I use extract-text-webpack-plugin?

// app.js
import '../scss/index.scss';
import AnComponent from './components/AnComponent/index';
// ./components/AnComponent/index.js
import './src/scss/index.scss';

export default class AnComponent Component {
    render() {
        return (
            <div class="component">
               I am a example component
            </div>
        );
    }
}
// ../scss/index.scss
body{
    background-color:red;
}
// ./components/AnComponent/src/scss/index.scss
body{
    background-color:green;
}

How can ensure ./scss/index.scss is before ./components/AnComponent/src/scss/index.scss in the output css file when I use extract-text-webpack-plugin?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions