UNPKG

react-image-cycling-tool

Version:

React component used to cycle throw a series of images seemlessly.

35 lines 697 B
var path = require('path'); module.exports = { entry: './src/index.js', mode: 'production', output: { path: path.resolve(__dirname, 'build'), filename: 'index.js', libraryTarget: 'commonjs2' }, module: { rules: [ { test: /\.js?$/, exclude: /(node_modules)/, use: 'babel-loader', }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] } ], }, resolve: { alias: { 'react': path.resolve(__dirname, './node_modules/react'), 'react-dom': path.resolve(__dirname, './node_modules/react-dom'), } }, externals: { 'react': 'commonjs react' } };