Skip to content

Commit

Permalink
Added fast-serve support.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-KaiNet committed May 26, 2021
1 parent f95ab4e commit 54c07b4
Show file tree
Hide file tree
Showing 8 changed files with 35,709 additions and 2,123 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ docs/documentation/site

# release
release
*.scss.d.ts
6 changes: 6 additions & 0 deletions fast-serve/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.1.1.schema.json",
"cli": {
"isLibraryComponent": false
}
}
24 changes: 24 additions & 0 deletions fast-serve/webpack.extend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* User webpack settings file. You can add your own settings here.
* Changes from this file will be merged into the base webpack configuration file.
* This file will not be overwritten by the subsequent spfx-fast-serve calls.
*/

// you can add your project related webpack configuration here, it will be merged using webpack-merge module
// i.e. plugins: [new webpack.Plugin()]
const webpackConfig = {

}

// for even more fine-grained control, you can apply custom webpack settings using below function
const transformConfig = function (initialWebpackConfig) {
// transform the initial webpack config here, i.e.
// initialWebpackConfig.plugins.push(new webpack.Plugin()); etc.

return initialWebpackConfig;
}

module.exports = {
webpackConfig,
transformConfig
}
8 changes: 7 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ build.rig.getTasks = function () {
return result;
};

build.initialize(gulp);
/* fast-serve */
const { addFastServe } = require("spfx-fast-serve-helpers");
addFastServe(build);
/* end of fast-serve */

build.initialize(require('gulp'));


const karmaTask = build.karma;
if (karmaTask) {
Expand Down
Loading

0 comments on commit 54c07b4

Please sign in to comment.