- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 388
Closed
Description
Hi, I specified the path in the plugin MiniCssExtractPlugin options but it keeps getting generated in my default output path that i also specified in my webpack. Can anyone help me in this issue? :) thanks
const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const build = path.resolve(__dirname, './public')
const js = path.resolve(__dirname, './src')
const config = {
  entry: {
    client: js + '/client',
    plugins: js + '/plugins'
  },
  output: {
    path: build + '/js',
    filename: '[name].js'
  },
  module: {
    rules: [
      {
        test: /\.jsx?/,
        loader: 'babel-loader',
        include: js,
        exclude: /node_modules/
      },
      {
        test: /\.scss$/,
        use: ['style-loader', MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader', 'sass-loader']
      }
    ]
  },
  plugins: [
    new MiniCssExtractPlugin({
      path: build + '/css',
      publicPath: build,
      filename: 'main.css'
    })
  ]
}
module.exports = config
tranvansang, conero, gmattie, Zerquix18, john-eevee and 6 more
Metadata
Metadata
Assignees
Labels
No labels