Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #89

Merged
merged 1 commit into from
Mar 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ npm i webpack-userscript -D
Include the plugin in the `webpack.config.js` as the following example.

```js
const WebpackUserscript = require('webpack-userscript');
const { UserscriptPlugin } = require('webpack-userscript');

module.exports = {
plugins: [new WebpackUserscript()],
plugins: [new UserscriptPlugin()],
};
```

Expand All @@ -56,7 +56,7 @@ After the first time starting the `webpack-dev-server`, you can install the scri

```js
const path = require('path');
const WebpackUserscript = require('webpack-userscript');
const { UserscriptPlugin } = require('webpack-userscript');
const dev = process.env.NODE_ENV === 'development';

module.exports = {
Expand All @@ -70,7 +70,7 @@ module.exports = {
contentBase: path.join(__dirname, 'dist'),
},
plugins: [
new WebpackUserscript({
new UserscriptPlugin({
headers(original) {
if (dev) {
return {
Expand Down Expand Up @@ -136,4 +136,4 @@ Possible interpolation variables are as follows.

## Configuration

See [UserscriptOptions](https://cow.moe/webpack-userscript/types/UserscriptOptions.html).
See [UserscriptOptions](https://cow.moe/webpack-userscript/types/UserscriptOptions.html).