Permalink
Cannot retrieve contributors at this time
19 lines (16 sloc)
422 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import resolve from '@rollup/plugin-node-resolve' | |
| import commonjs from '@rollup/plugin-commonjs' | |
| import { terser } from 'rollup-plugin-terser' | |
| const config = { | |
| input: './dist/core/core.js', | |
| output: { | |
| file: 'dist/htmlhint.js', | |
| format: 'umd', | |
| name: 'HTMLHint', | |
| }, | |
| plugins: [commonjs(), resolve()], | |
| } | |
| if (process.env.NODE_ENV === 'production') { | |
| config.plugins.push(terser()) | |
| } | |
| export default config |