UNPKG

calendar-reactjs

Version:

This package is developed to render calendar by providing any future or past date along with data. It can also render attendance of each day of employees/students

39 lines 1.67 kB
var path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'build'), filename: 'index.js', libraryTarget: 'commonjs2' // THIS IS THE MOST IMPORTANT LINE! :mindblow: I wasted more than 2 days until realize this was the line most important in all this guide. }, module: { rules: [ { test: /\.js$/, include: path.resolve(__dirname, 'src'), exclude: /(node_modules|bower_components|build)/, use: { loader: 'babel-loader', options: { presets: ['env'] } } }, { // Preprocess your css files // you can add additional loaders here (e.g. sass/less etc.) test: /\.css$/, exclude: /node_modules/, use: ['style-loader', 'css-loader'], }, { test: /\.woff$/, loader: "url-loader?limit=10000&mimetype=application/font-woff" }, { test: /\.ttf$/, loader: "url-loader?limit=10000&mimetype=application/octet-stream" }, { test: /\.eot$/, loader: "file-loader" }, { test: /\.svg$/, loader: "url-loader?limit=10000&mimetype=image/svg+xml" }, { test: /\.otf$/, loader: "url-loader?limit=10000&mimetype=image/svg+xml" } ] }, externals: { 'react': 'commonjs react' // this line is just to use the React dependency of our parent-testing-project instead of using our own React. } };