BVB Source Codes

in-view Show webpack.config.js Source code

Return Download in-view: download webpack.config.js Source code - Download in-view Source code - Type:.js
  1. const LodashModuleReplacementPlugin = require('lodash-webpack-plugin'),
  2.       webpack = require('webpack'),
  3.       package = require('./package');
  4.  
  5. const banner = `${package.name} ${package.version} - ${package.description}\nCopyright (c) ${ new Date().getFullYear() } ${package.author} - ${package.homepage}\nLicense: ${package.license}`;
  6.  
  7. module.exports = {
  8.     'context': __dirname + '/src',
  9.     'entry': './index.js',
  10.     'output': {
  11.         'path': __dirname + '/dist',
  12.         'filename': `${package.name}.min.js`,
  13.         'library': `inView`,
  14.         'libraryTarget': 'umd'
  15.     },
  16.     'module': {
  17.         'loaders': [{
  18.             'test': /\.js$/,
  19.             'exclude': /node_modules/,
  20.             'loader': 'babel'
  21.         }]
  22.     },
  23.     'plugins': [
  24.         new webpack.BannerPlugin(banner),
  25.         new LodashModuleReplacementPlugin
  26.     ]
  27. };
  28.  
downloadwebpack.config.js Source code - Download in-view Source code
Related Source Codes/Software:
magictools - 2017-01-09
elm-compiler - Compiler for Elm, a functional language for reliab... 2017-01-09
Twig - Twig, the flexible, fast, and secure template lang... 2017-01-09
android-testing - A collection of samples demonstrating different fr... 2017-01-09
lib-flexible - Scalable layout scheme 2017-01-09
sinon - Test spies, stubs and mocks for JavaScript. ... 2017-01-09
docker-gitlab - Dockerized GitLab http://www.da... 2017-01-09
Side-Menu.Android - Side menu with some categories to choose. ... 2017-01-09
libsodium - A modern and easy-to-use crypto library. 2017-01-09
prerender - Node server that uses phantomjs to render a javasc... 2017-01-09
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top