Skip to content

Doesn't extract when in production mode #275

Closed
@MikaAK

Description

@MikaAK

PackageVersion: 0.4.2
Node: 9.3.0

Adding the following seems to work in development mode, but when switching to production mode it no longer emits the css files.

plugins: [new MiniCssExtractPlugin({
  filename: '[name]-[contenthash].css'
})],

module: {
  rules: [{
      test: /\.s?css/,
      include: SRC_PATH,
      use: [
        MiniCssExtractPlugin.loader,
        {loader: 'css-loader', options: {importLoaders: 2}},
        'postcss-loader',
        {loader: 'sass-loader', options: {includePaths: SASS_INCLUDES}}
      ]
    }]
}

This configuration works find in development mode but not production

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