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

Fast-serve update to match the most recent changes. #3581

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

s-KaiNet
Copy link
Contributor

I noticed that you already use the latest (1.18.10) fast-serve version for SPFx 1.18 (hooray!).
This PR simply adds some small updates regarding the usage of the latest fast-serve and other minor fixes:

  • fast-serve/config.json - not needed anymore, default config settings are used
  • package.json's serve command was simplified for easier updates in the future
  • gulpfile.js - build.tslintCmd.enabled = false; is not needed anymore, since tslint is not used in SPFx
  • fast-serve/webpack.extend.js now fully matches the corresponding "configureWebpack" changes from gulpfile.js
  • inside config/serve.json the "api" property is not used anymore in SPFx 1.18, but produces some errors for OOB "gulp serve", thus was removed

@s-KaiNet
Copy link
Contributor Author

s-KaiNet commented Feb 28, 2024

I also found, that condition include: [/spfx-controls-react\/lib\/controls\/HoverReactionsBar/], inside gulpfile.js doesn't work for me and build still produces unnecessary heavy output bundle. Most likely the problem is in windows styled paths, where back slashes are used. So I updated condition to match both windows and unix styles for include:
obraz

Copy link

sonarcloud bot commented Feb 28, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -94,7 +87,7 @@ const envCheck = build.subTask('environmentCheck', (gulp, config, done) => {
}, {
// Skip HoverReactionsBar from spfx controls as it's not used and is bundles
test: /index\.js$/,
include: [/spfx-controls-react\/lib\/controls\/HoverReactionsBar/],
include: [/spfx-controls-react[/\\]lib[/\\]controls[/\\]HoverReactionsBar/],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Windows 😅

@wobba
Copy link
Collaborator

wobba commented Feb 28, 2024

Thank you :)

@wobba wobba merged commit 73dd970 into microsoft-search:develop Feb 28, 2024
1 check passed
@s-KaiNet s-KaiNet deleted the fast-serve-update branch February 29, 2024 00:08
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.

None yet

2 participants