UNPKG

react-single-calendar-events

Version:

## **Description:** **react-single-calendar-events** is a very useful and easy to use Event Calendar, no external dependency is needed for this. You can chagne theme of it's color, by simply editing css variables.

48 lines (47 loc) 971 B
const path = require('path'); module.exports = { mode: 'production', entry: './src/SingleCalendarEvents.js', output: { path: path.resolve('lib'), filename: 'SingleCalendarEvents.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" } } };