UNPKG

use-view-width

Version:

React Hook for returning the width of the viewport.

15 lines (13 loc) 250 B
const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'main.js', library: 'use-view-width', libraryTarget: 'commonjs2' }, externals: { react: 'react' } };