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.

4.0.0-beta.0 adding a loader changes the order of generated CSS #745

@rightaway

Description

@rightaway

I'm using 4.0.0-beta.0. Without postcss-loader added below, I get the expected behavior, where the extracted css from vue-loader is appended to the end of the final css file. But adding 'postcss-loader' puts the extracted css to the beginning of the final css file which isn't correct.

    rules: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: {
          extractCSS: true,
        },
      },
      {
        test: /\.css$/,
        use: ExtractTextPlugin.extract({
          use: [
            {
              loader: 'css-loader',
              options: { importLoaders: 1 },
            },
            'postcss-loader',
          ],
        }),
      },
    ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions