Guest User

Untitled

a guest
Jun 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. const path = require('path'),
  2. AssetsPlugin = require('assets-webpack-plugin'),
  3. HtmlWebpackPlugin = require('html-webpack-plugin');
  4.  
  5. module.exports = {
  6. devtool: 'inline-source-map',
  7. entry: './client/index.js',
  8. output: {
  9. filename: '[name].bundle.js',
  10. path: path.resolve(__dirname, 'build/client'),
  11. publicPath: 'build/client'
  12. },
  13. module: {
  14. rules: [{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }]
  15. },
  16. plugins: [
  17. new HtmlWebpackPlugin({
  18. template: './client/index.html',
  19. title: 'Bus Booking in Africa'
  20. }),
  21. new AssetsPlugin({
  22. prettyPrint: true,
  23. filename: 'assets.json',
  24. path: path.resolve(__dirname, 'build')
  25. })
  26. ]
  27. };
Add Comment
Please, Sign In to add comment