shlomiassaf / webpack-dll-bundles-plugin

A Webpack plugin for bundling group of packages as DLLs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't work with alias in webpack cofiguration

Genuifx opened this issue · comments

commented

I use this plugin to build vue application, it's awesome.
but when i set the alias options in webpack , Dllplugin can not recommend it. it will take two version of vue, that is terrible.

my configuration:

{
    // some other configs
    plugins: [
        new DllBundlesPlugin({
            bundles: { vendor: [''vue"] }
        }),
        //... other plugins
    ],
    resolve:{
        alias:{
            'vue$': 'vue/dist/vue.common.js'
        }
    }
}

hope someone to help

commented

Anyone, give help?

commented

put alias config before setting dllBundlePlugin can fix this.