UNPKG

react-taggle-input

Version:

Simple react tagging Input component. Inspired from taggle.js - Jquery library

56 lines (54 loc) 1.26 kB
const path = require('path'); module.exports = { entry: './src/index.jsx', output: { path: path.resolve(__dirname, 'lib'), filename: 'react-taggle-input.js', chunkFilename: 'vendors.js', library: 'react-taggle-input', libraryTarget: 'umd' }, optimization: { splitChunks: { cacheGroups: { vendors: { test: /[\\/]node_modules[\\/]/, name: 'vendors', chunks: 'all', priority: 1, enforce: true, reuseExistingChunk: true } } } }, module: { rules: [ { test: /\.(js|jsx)$/, enforce: 'pre', exclude: /node_modules/, include: path.resolve(__dirname, './src'), loader: 'eslint-loader', options: { configFile: './.eslintrc', fix: true } }, { test: /\.(js|jsx)$/, include: path.resolve(__dirname, './src'), loader: 'babel-loader' }, { test: /\.scss$/, use: ['style-loader', 'css-loader', 'sass-loader'] }, { test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'file-loader?name=static/[name].[ext]&publicPath=/lib/', include: __dirname } ] } };