前端代码
This commit is contained in:
40
node_modules/browser-sync-ui/lib/config.js
generated
vendored
Normal file
40
node_modules/browser-sync-ui/lib/config.js
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
var Immutable = require("immutable");
|
||||
|
||||
/**
|
||||
* Any configurable paths/config
|
||||
* @type {{pluginName: string, indexPage: string, socketJs: string, appJs: string, connector: string}}
|
||||
*/
|
||||
var defaults = {
|
||||
pluginName: "UI",
|
||||
indexPage: "/index.html",
|
||||
socketJs: "/js/vendor/socket.js",
|
||||
appJs: "/js/dist/app.js",
|
||||
app: "/app.js",
|
||||
appExtraJs: "/js/app-extra.js",
|
||||
connector: "/js/connector.js",
|
||||
pagesConfig: "/js/pages-config.js",
|
||||
public: {
|
||||
svg: "/img/icons/icons.svg",
|
||||
css: "/css/core.min.css"
|
||||
},
|
||||
clientJs: "/lib/client-js.js",
|
||||
socket: {
|
||||
namespace: "/browser-sync-cp"
|
||||
},
|
||||
components: {
|
||||
header: "/components/header.html",
|
||||
footer: "/components/footer.html"
|
||||
}
|
||||
};
|
||||
|
||||
module.exports.defaults = defaults;
|
||||
|
||||
/**
|
||||
* @param [userConfig]
|
||||
* @returns {Map}
|
||||
*/
|
||||
module.exports.merge = function (userConfig) {
|
||||
return Immutable
|
||||
.fromJS(defaults)
|
||||
.mergeDeep(userConfig);
|
||||
};
|
Reference in New Issue
Block a user