UNPKG

noise-to-scroll

Version:

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

31 lines (30 loc) 790 B
const path = require('path'); module.exports = { mode: 'development', devtool: "eval-source-map", entry: './src/noise-to-scroll.js', output: { publicPath: "/", path: path.resolve(__dirname, 'dist'), filename: 'noise-to-scroll.js', library: 'noiseToScroll', libraryTarget: 'umd' }, devServer: { contentBase: __dirname }, module: { rules: [ { test: /\.m?js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'] } } } ] } };