Updated SP-build-web version, updated instructions

This commit is contained in:
Chris Lizon 2023-05-03 11:04:37 -04:00
parent 32293f75d5
commit e2eb73f599
2 changed files with 6 additions and 3 deletions

View File

@ -81,14 +81,17 @@ Download & install all dependencies, build, bundle & package the project
# download & install dependencies
npm install
#If you receive an error Cannot find module 'worker_threads' you will need to tell Node 10 to use the experiemental worker features via environment variable. In Powershell this is accomplished like this:
$env:NODE_OPTIONS="--experimental-worker"
# transpile all TypeScript & SCSS => JavaScript & CSS
gulp build
# create component bundle & manifest
gulp bundle
gulp bundle --ship
# create SharePoint package
gulp package-solution
gulp package-solution --ship
```
These commands produce the following:

View File

@ -13,6 +13,7 @@
},
"dependencies": {
"@microsoft/mgt": "^2.0.1",
"@microsoft/sp-build-web": "1.11.0",
"@microsoft/sp-core-library": "1.11.0",
"@microsoft/sp-lodash-subset": "1.11.0",
"@microsoft/sp-office-ui-fabric-core": "1.11.0",
@ -65,7 +66,6 @@
"devDependencies": {
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
"@microsoft/sp-build-web": "1.11.0",
"@microsoft/sp-module-interfaces": "1.11.0",
"@microsoft/sp-tslint-rules": "1.11.0",
"@microsoft/sp-webpart-workbench": "1.12.1",