daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const webpack = require('webpack');
  2. const path = require('path');
  3.  
  4. module.exports = {
  5.     entry: './src/app.js',
  6.     mode: 'development',
  7.     // mode: 'production',
  8.     module:{
  9.         rules: [
  10.             {
  11.                 test: /.js$/,
  12.                 exclude: /(node_modules|dist|dev|bin|test)/,
  13.                 use: {
  14.                     loader: 'babel-loader'
  15.                 }
  16.             }
  17.         ]
  18.     },
  19.     output: {
  20.         path: path.join(__dirname, 'dev'),
  21.         filename: 'bundle.js'
  22.     }
  23. }
  24.    
  25. const presets = [
  26.     [
  27.         '@babel/preset-env',
  28.         {
  29.             useBuiltIns: 'usage'
  30.         }
  31.     ]
  32. ];
  33. module.exports = { presets };
  34.    
  35. "dependencies": {
  36.     "@babel/polyfill": "^7.0.0",
  37.     "bluebird": "^3.5.1",
  38.     "customevent": "^1.0.0",
  39.     "gsap": "^2.0.2",
  40.     "jquery": "^3.3.1",
  41.     "timers-browserify": "^2.0.10",
  42.     "tween-ticker": "^3.3.2",
  43.     "xhr": "^2.5.0"
  44.   },
  45.   "devDependencies": {
  46.     "@babel/cli": "^7.1.5",
  47.     "@babel/core": "^7.1.6",
  48.     "@babel/preset-env": "^7.1.6",
  49.     "@babel/register": "^7.0.0",
  50.     "babel-loader": "^8.0.5",
  51.     "webpack": "^4.26.1",
  52.     "webpack-cli": "^3.2.1",
  53.     "webpack-dev-server": "^3.1.10"
  54.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Pastebin PRO 'WINTER SPECIAL'!
Get 40% OFF Pastebin PRO accounts!
 
Top