Guest User

Untitled

a guest
Mar 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. const path = require('path')
  2. const webpack = require('webpack')
  3. const ManifestPlugin = require('webpack-manifest-plugin')
  4.  
  5. module.exports = {
  6. entry: {
  7. react: ['react', 'react-dom', 'react-router-dom'],
  8. redux: ['redux', 'react-redux'],
  9. observable: ['redux-observable', 'rxjs'],
  10. styledComponents: ['styled-components'],
  11. },
  12. output: {
  13. path: path.resolve(__dirname, '../lib'),
  14. filename: '[name]_dll.js',
  15. library: '[name]_dll',
  16. },
  17. plugins: [
  18. new webpack.DllPlugin({
  19. context: __dirname,
  20. name: '[name]_dll',
  21. path: path.resolve(__dirname, '../lib/[name]_manifest.json'),
  22. }),
  23. new ManifestPlugin(),
  24. // new webpack.DefinePlugin({
  25. // 'process.env': {
  26. // NODE_ENV: JSON.stringify('development'),
  27. // },
  28. // }),
  29. ],
  30. }
Add Comment
Please, Sign In to add comment