Guest User

Untitled

a guest
Oct 22nd, 2018
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const path = require('path');
  2.  
  3. module.exports = async (env = {}) => {
  4. return {
  5. mode: 'development',
  6. entry: {
  7. index: './src/js/state/index.js'
  8. },
  9. output: {
  10. filename: 'bundle.js',
  11. path: path.resolve(__dirname, 'dist'),
  12. },
  13. resolve: {
  14. alias: {
  15. _test: path.join(__dirname, 'src/js/state/'),
  16. }
  17. },
  18. module: {
  19. rules: [
  20. {
  21. test: /\.js$/,
  22. exclude: '/node_modules/',
  23. use: ['babel-loader'],
  24. },
  25. ]
  26. }
  27. };
  28. };
RAW Paste Data