Skip to content

Making HTML not get auto deleted#266

Merged
igor-ribeiiro merged 2 commits intoOfficeDev:masterfrom
igor-ribeiiro:html-deleted
Apr 6, 2021
Merged

Making HTML not get auto deleted#266
igor-ribeiiro merged 2 commits intoOfficeDev:masterfrom
igor-ribeiiro:html-deleted

Conversation

@igor-ribeiiro
Copy link
Copy Markdown
Contributor

Had to override the default behavior of the CleanWebpackPlugin. It normally deletes all files creates by other plugins that are not webpack.
This is the case for out HTML, css and one .xml file. So I made it just clean the files before compiling and not after.

Now you can run npm run build followed by npm start and the project would work.

@igor-ribeiiro igor-ribeiiro self-assigned this Apr 5, 2021
@igor-ribeiiro igor-ribeiiro requested a review from a team as a code owner April 5, 2021 20:05
@igor-ribeiiro igor-ribeiiro requested a review from akrantz April 5, 2021 20:09
Copy link
Copy Markdown
Contributor

@akrantz akrantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment.

Comment thread webpack.config.js Outdated
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: dev ? [] : ["**/*"]
cleanOnceBeforeBuildPatterns: dev ? [] : ["**/*"],
cleanAfterEveryBuildPatterns: ["!**/*"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the cleanAfterEveryBuildPatterns be different between dev and prod? e.g. dev ? [!**/*] : []

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, it makes sense to be that way if the prod is already working.
Just pushed this fix

@igor-ribeiiro igor-ribeiiro merged commit 969527a into OfficeDev:master Apr 6, 2021
@igor-ribeiiro igor-ribeiiro deleted the html-deleted branch April 6, 2021 18:01
igor-ribeiiro added a commit that referenced this pull request Apr 12, 2021
* Fixing breakpoints for VSCode

* Making HTML not get auto deleted (#266)

Had to override the default behavior of the CleanWebpackPlugin. It normally deletes all files creates by other plugins that are not webpack.
This is the case for out HTML, css and one .xml file. So I made it just clean the files before compiling and not after.

Now you can run npm run build followed by npm start and the project would work.

* Making it always wait the same amount (#267)

Making test always wait 5000 regardless of flaky tests to make tests more reliable.
igor-ribeiiro added a commit that referenced this pull request Apr 12, 2021
* Fixing breakpoints for VSCode

* Making HTML not get auto deleted (#266)

Had to override the default behavior of the CleanWebpackPlugin. It normally deletes all files creates by other plugins that are not webpack.
This is the case for out HTML, css and one .xml file. So I made it just clean the files before compiling and not after.

Now you can run npm run build followed by npm start and the project would work.

* Making it always wait the same amount (#267)

Making test always wait 5000 regardless of flaky tests to make tests more reliable.
millerds pushed a commit that referenced this pull request Oct 2, 2024
* Typo fixes

"succesfully" -> "successfully"

* FIx typo across all manifests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants