Skip to content

Commit

Permalink
Change to replace all entries #25
Browse files Browse the repository at this point in the history
  • Loading branch information
qrac committed Jan 20, 2022
1 parent e4fef5f commit 5846500
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ const webpackConfig = {
devServer: {
open: ["/index.html"],
},
// Replace
entry: { custom: "./src/assets/index.js" },
plugins: [
// Replace
new MiniCssExtractPlugin({
Expand Down
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function getUserWebpackConfig() {
function getMergedWebpackConfig({ config, userConfig }) {
const mergedConfig = mergeWithCustomize({
customizeObject: customizeObject({
entry: "replace",
optimization: "replace",
}),
customizeArray: unique(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "minista",
"description": "Mini static site generator that can be written in React (JSX) for web coding",
"version": "1.0.2",
"version": "1.1.0",
"bin": {
"minista": "cli.js"
},
Expand Down
2 changes: 1 addition & 1 deletion test/jsx/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const webpackConfig = {
devServer: {
open: ["/index.html"],
},
entry: { bundle: "./src/assets/index.js" },
entry: { custom: "./src/assets/index.js" },
}

module.exports = webpackConfig

0 comments on commit 5846500

Please sign in to comment.