Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // webpack.config.js
- module.exports = {
- context: __dirname,
- entry: {
- vendor: ['название вашей библиотеки'],
- app: 'путь к главному файлу'
- },
- output: {
- filename: '[name].js',
- pathinfo: true
- },
- target: 'web',
- mode: 'development',
- module: {
- rules: [...Ваши лоадеры]
- },
- optimization: {
- runtimeChunk: true,
- splitChunks: {
- cacheGroups: {
- vendor: {
- chunks: 'initial',
- name: 'vendor',
- test: 'vendor',
- enforce: true
- }
- }
- }
- }
- };
Add Comment
Please, Sign In to add comment