Skip to content

Usage example #6

@zivkaziv

Description

@zivkaziv

Hey guys,

I'm trying to use this plugin with webpack 4.
I have the following configuration

 entry: {
        bundle: './js/app.js',
    },
    output: {
        path: path.join(__dirname, 'public'),
        filename: 'dist/[name].[chunkhash].js'
    },
    resolve: {
        plugins: [new BowerResolvePlugin()],
        modules: ['libs'], //This is the directory of my bower moduls
        descriptionFiles: ['bower.json'],
        mainFields: ['browser', 'main']
    },

But it doesn't load any dependency.
Can you please help me with some usage example?

Thanks

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