Skip to content

Not works at development mode #43

@jrichardsz

Description

@jrichardsz

Following the minimal example:

new MergeIntoSingleFilePlugin({
    files: {
        "vendor.js": [
            'src/assets/vendors/js/vendor.bundle.base.js'
        ]
    }
}),
<script src="./vendor.js"></script> 

I get this error when I execute npm run dev

  Error: Child compilation failed:
  Module not found: Error: Can't resolve './vendor.js' in '/home/jarvis/Incubator/webpack-starter/src':
  Error: Can't resolve './vendor.js' in '/home/jarvis/Incubator/webpack-starter/src'

But if I execute npm run build, I can see a new vendor.js file in dist folder and everything works fine!

What can I do to have the ./vendor.js at development stage?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions