UNPKG

noise-to-scroll

Version:

A JavaScript library for browsers that allows users to scroll by making noise with their microphones.

26 lines (25 loc) 676 B
const path = require('path'); module.exports = { mode: 'production', entry: './src/noise-to-scroll.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'noise-to-scroll.min.js', library: 'noiseToScroll', libraryTarget: 'umd' }, module: { rules: [ { test: /\.m?js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'] } } } ] } };