Demo entry 6758244

eetst

   

Submitted by anonymous on Aug 09, 2018 at 19:09
Language: JavaScript. Code size: 825 Bytes.

import webpack from 'webpack';
import pkg from './package.json';
var banner = `
  ${pkg.name} - ${pkg.description}
  Author: ${pkg.author}
  Version: v${pkg.version}
  Url: ${pkg.homepage}
  License(s): ${pkg.license}
`;

export default {
  entry: {
    Typed: './src/typed.js'
  },
  output: {
    path: __dirname,
    library: 'Typed',
    libraryTarget: 'umd',
    filename: `typed.js`
  },
  devtool: '#inline-source-map',
  externals: [
    {
      lodash: {
        root: '_',
        commonjs: 'lodash',
        commonjs2: 'lodash',
        amd: 'lodash'
      }
    }
  ],
  module: {
    loaders: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel',
        query: {
          compact: false
        }
      }
    ]
  },
  plugins: [
    new webpack.BannerPlugin(banner)
  ]
};

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).