一覧へ戻る
yohangz/rollup-plugin-ignore-import(新しいタブで開きます)
主要言語: JavaScript
Ignore import rollup plugin
- star 数
- 9
- watcher 数
- 1
- fork 数
- 5
- issue 数
- 7
- 最終更新
- 2023/06/16
主要言語: JavaScript
Ignore import rollup plugin
Ignore import depending on the file extension. Useful when running
Via Yarn
yarn add rollup-plugin-ignore-import --save-dev
Via NPM
npm install rollup-plugin-ignore-import --save-dev
// rollup.config.js import ignoreImport from 'rollup-plugin-ignore-import'; export default { entry: 'entry.js', dest: 'bundle.js', plugins: [ ignoreImport({ // Ignore all .scss and .css file imports while building the bundle extensions: ['.scss', '.css'], // Optional: replace body for ignored files. Default value is "export default undefined;" body: 'export default undefined;' }) ] }
// rollup.config.js import ignoreImport from 'rollup-plugin-ignore-import'; export default { entry: 'entry.js', dest: 'bundle.js', plugins: [ ignoreImport({ // Ignore all .scss and .css file imports while building the bundle include: ['**/*.scss', '**/*.css'], // Optional: replace body for ignored files. Default value is "export default undefined;" body: 'export default undefined;' }) ] }
This software is licensed under the MIT License