Skip to content

Commit

Permalink
chore: fix invalid filename in webpack config of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
guansss committed Nov 3, 2023
1 parent 4d1aa3f commit 9276c4b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ const path = require("path")
const { monkey } = require("webpack-monkey")

module.exports = monkey({
entry: "./src/index.js",
entry: {
hello: "./src/index.js",
},
output: {
filename: "hello.user.js",
path: path.resolve(__dirname, "dist"),
},
})
Expand Down Expand Up @@ -192,9 +193,6 @@ module.exports = monkey({
},
output: {
path: path.resolve(__dirname, "dist"),

// this one is optional, it's already set as the default value by monkey()
filename: "[name].user.js",
},
})
```
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion examples/hello-world/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { monkey } = require("webpack-monkey")
module.exports = monkey({
entry: "./src/index.js",
output: {
filename: "hello-word.user.js",
path: path.resolve(__dirname, "dist"),
},
})
File renamed without changes.
1 change: 0 additions & 1 deletion examples/ts-hello-world/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { monkey } from "webpack-monkey"
module.exports = monkey({
entry: "./src/index.ts",
output: {
filename: "ts-hello-word.user.js",
path: path.resolve(__dirname, "dist"),
},
module: {
Expand Down

0 comments on commit 9276c4b

Please sign in to comment.