UNPKG

@desto/scrollbar-js

Version:

A script which produces stylable scrollbars. It also allows styling of the resize handle.

11 lines (8 loc) 384 B
// add the copyright banner to the top of the min.js file const prependFile = require('prepend-file'); const {version, license, homepage} = require('../package.json'); const repositoryName = homepage.split('/').pop(); const banner = `// ${repositoryName} v${version} | ${license} | ${homepage}\n`; prependFile('dist/scrollbar.js', banner, (error) => { if( error ) throw error; });