Skip to content

Want to be able to import webpack plugins to the webpack config in vue.config.js #993

Closed
@gunhaxxor

Description

@gunhaxxor

What problem does this feature solve?

Currently there is no way to import new webpack plugins to the vue.config.js. At least not that I know of. Please enlighten me if I'm mistaken.
My use case is that I've made modifications to an already existing webpack plugin, and I want to use my version instead.

What does the proposed API look like?

// vue.config.js
import NameOfPlugin from 'path/to/plugin';

module.exports = {
  configureWebpack: {
    plugins: [
      new NameOfPlugin()
    ]
  }
};

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