Skip to content

No loader specified #1121

Closed
Closed
@abcdGJJ

Description

@abcdGJJ

Version

3.0.0-beta.6

Reproduction link

https://jsfiddle.net/50wL7mdz/298228/

Steps to reproduce

I run npm run build this command, then console throw a error that

D:\project\vuets\node_modules\[email protected]@webpack\lib\RuleSet.js:274 throw new Error("No loader specified");.

I have a config of vue.config.js like this:

module.exports = {
  chainWebpack: (config) => {
    config.module
      .rule('images')
      .use('url-loader')
      .tap(options => ({ ...options, ...{ name: 'img/[name].[ext]', } }))
  }
}

Is anything wrong?

What is expected?

normal build and output files

What is actually happening?

throw a error of No loader specified

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