UNPKG

react-add-to-homescreen

Version:

[![CircleCI](https://circleci.com/gh/kkoscielniak/react-add-to-homescreen/tree/master.svg?style=svg)](https://circleci.com/gh/kkoscielniak/react-add-to-homescreen/tree/master) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://

30 lines (28 loc) 578 B
const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'build'), filename: 'index.js', libraryTarget: 'commonjs2', }, module: { rules: [ { test: /\.js*$/, include: path.resolve(__dirname, 'src'), exclude: /(node_modules|build)/, use: { loader: 'babel-loader', }, }, { test: /\.*css$/, use: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, externals: { react: 'commonjs react', }, };