UNPKG

fontawesomehelper

Version:

FontAwesomeHelper is a platform devoted to help people find and manage Font Awesome icons easily

38 lines (35 loc) 911 B
const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); // const Uglify = require('uglifyjs-webpack-plugin'); const extractLESS = new ExtractTextPlugin('bundle.css'); module.exports = { entry: { index: './src/index.js', 'web-index': './index.js', }, output: { path: path.resolve(__dirname, 'build'), filename: '[name].js', }, devtool: 'inline-source-map', devServer: { contentBase: './build', }, module: { rules: [ { test: /\.less$/i, use: extractLESS.extract(['css-loader', 'less-loader']), }, { test: /(\.jsx|\.js)$/, exclude: /node_modules/, loader: 'babel-loader', }, ], }, plugins: [ extractLESS, // new Uglify(), ], };