UNPKG

devicon-react

Version:

A react implementation of the devicons font library

32 lines (29 loc) 633 B
var path = require('path'); var webpack = require('webpack'); var config = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dis'), filename: 'index.js', libraryTarget: 'commonjs2' }, module: { rules: [ { test: /\.js$/, include: path.resolve(__dirname, 'src'), exclude: /(node_modules|bower_components|build)/, use: { loader: 'babel-loader', options: { presets: ['env'] } } } ] }, externals: { 'react': 'commonjs react' } }; module.exports = config;