mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-10 15:05:19 +00:00
Updated SP-build-web version, updated instructions
This commit is contained in:
parent
32293f75d5
commit
e2eb73f599
@ -81,14 +81,17 @@ Download & install all dependencies, build, bundle & package the project
|
|||||||
# download & install dependencies
|
# download & install dependencies
|
||||||
npm install
|
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
|
# transpile all TypeScript & SCSS => JavaScript & CSS
|
||||||
gulp build
|
gulp build
|
||||||
|
|
||||||
# create component bundle & manifest
|
# create component bundle & manifest
|
||||||
gulp bundle
|
gulp bundle --ship
|
||||||
|
|
||||||
# create SharePoint package
|
# create SharePoint package
|
||||||
gulp package-solution
|
gulp package-solution --ship
|
||||||
```
|
```
|
||||||
|
|
||||||
These commands produce the following:
|
These commands produce the following:
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/mgt": "^2.0.1",
|
"@microsoft/mgt": "^2.0.1",
|
||||||
|
"@microsoft/sp-build-web": "1.11.0",
|
||||||
"@microsoft/sp-core-library": "1.11.0",
|
"@microsoft/sp-core-library": "1.11.0",
|
||||||
"@microsoft/sp-lodash-subset": "1.11.0",
|
"@microsoft/sp-lodash-subset": "1.11.0",
|
||||||
"@microsoft/sp-office-ui-fabric-core": "1.11.0",
|
"@microsoft/sp-office-ui-fabric-core": "1.11.0",
|
||||||
@ -65,7 +66,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@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-module-interfaces": "1.11.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.11.0",
|
"@microsoft/sp-tslint-rules": "1.11.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.12.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user