UNPKG

react-color-selector

Version:

## **Description:** **react-color-selector** is a very useful and easy to use color picker, no external dependency is needed for this. You can chagne theme of it's color, by simply editing css variables. One of the best featur is you can use *any number

48 lines (47 loc) 957 B
const path = require('path'); module.exports = { mode: 'production', entry: './src/ColorSelector.js', output: { path: path.resolve('lib'), filename: 'ColorSelector.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: { // Don't bundle react or react-dom react: { commonjs: "react", commonjs2: "react", amd: "React", root: "React" }, "react-dom": { commonjs: "react-dom", commonjs2: "react-dom", amd: "ReactDOM", root: "ReactDOM" } } };