Closed icai closed 6 years ago
As the title, my config is following.
new AutoDllPlugin({ inject: true, // will inject the DLL bundles to index.html filename: '[name].[hash:5].js', path: './dll', entry: { lib: [ 'jquery', 'mini' ], vendor: ['vue', 'iview'] } }),
mini package is my local privite package.
mini
webpack config
resolve: { extensions: ['.js', '.jsx', '.vue', '.json'], alias: { 'vue$': 'vue/dist/vue.esm.js', mini: resolve('packages/mini'), } },
mini.js
require('./boot2.js') require('jquery') require('./miniui/miniui-source.js') export default window.mini
As the title, my config is following.
mini
package is my local privite package.webpack config
mini.js