https://github.com/webdeveric/webpack-plugin-modify-entrypoints
webpack plugin to modify entrypoint contents
https://github.com/webdeveric/webpack-plugin-modify-entrypoints
entrypoints modify plugin webpack
Last synced: 2 months ago
JSON representation
webpack plugin to modify entrypoint contents
- Host: GitHub
- URL: https://github.com/webdeveric/webpack-plugin-modify-entrypoints
- Owner: webdeveric
- License: mit
- Created: 2023-09-14T13:35:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-07T14:36:06.000Z (about 1 year ago)
- Last Synced: 2025-01-12T09:12:37.387Z (4 months ago)
- Topics: entrypoints, modify, plugin, webpack
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/webpack-plugin-modify-entrypoints
- Size: 170 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `webpack-plugin-modify-entrypoints`
[](https://github.com/webdeveric/webpack-plugin-modify-entrypoints/actions/workflows/node.js.yml)
## Install
`pnpm add webpack-plugin-modify-entrypoints -D`
## Example usage
Import plugin in your webpack config.
```js
import { ModifyEntryPoints } from 'webpack-plugin-modify-entrypoints';
```Add this to your plugins array.
```js
new ModifyEntryPoints({
modify(source, details) {
return `
// Before
${source}
// After
`;
},
});
```