responsible-ai-widgets/webpack.config.js

35 строки
798 B
JavaScript
Исходник Постоянная ссылка Обычный вид История

Xuke/add mono repo (#7) * add monorepo Signed-off-by: Ke Xu <xuke@microsoft.com> * add react Signed-off-by: Ke Xu <xuke@microsoft.com> * add lib Signed-off-by: Ke Xu <xuke@microsoft.com> * move ml chart lib Signed-off-by: Ke Xu <xuke@microsoft.com> * change to use style over js Signed-off-by: Ke Xu <xuke@microsoft.com> * add type Signed-off-by: Ke Xu <xuke@microsoft.com> * add external Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * remove old folder Signed-off-by: Ke Xu <xuke@microsoft.com> * move interpret Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * move fairlearn Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * move dashboard Signed-off-by: Ke Xu <xuke@microsoft.com> * fix eqeqeq Signed-off-by: Ke Xu <xuke@microsoft.com> * merger settings and plugin Signed-off-by: Ke Xu <xuke@microsoft.com> * merge rules and add array return Signed-off-by: Ke Xu <xuke@microsoft.com> * turn on more lint rule and fix Signed-off-by: Ke Xu <xuke@microsoft.com> * more rules Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * add router Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix css Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix yarn start Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix import lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix office fabric import Signed-off-by: Ke Xu <xuke@microsoft.com> * fix office fabric Signed-off-by: Ke Xu <xuke@microsoft.com> * fix quote Signed-off-by: Ke Xu <xuke@microsoft.com> * array type Signed-off-by: Ke Xu <xuke@microsoft.com> * fix constructor Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fir member order Signed-off-by: Ke Xu <xuke@microsoft.com> * add no-unbound linter Signed-off-by: Ke Xu <xuke@microsoft.com> * move files Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix bind lint Signed-off-by: Ke Xu <xuke@microsoft.com> * comment out unused function Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com>
2020-08-04 03:38:17 +03:00
const nrwlConfig = require("@nrwl/react/plugins/webpack.js"); // require the main @nrwl/react/plugins/webpack configuration function.
module.exports = (config) => {
nrwlConfig(config); // first call it so that it @nrwl/react plugin adds its configs,
Xuke/add mono repo (#7) * add monorepo Signed-off-by: Ke Xu <xuke@microsoft.com> * add react Signed-off-by: Ke Xu <xuke@microsoft.com> * add lib Signed-off-by: Ke Xu <xuke@microsoft.com> * move ml chart lib Signed-off-by: Ke Xu <xuke@microsoft.com> * change to use style over js Signed-off-by: Ke Xu <xuke@microsoft.com> * add type Signed-off-by: Ke Xu <xuke@microsoft.com> * add external Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * remove old folder Signed-off-by: Ke Xu <xuke@microsoft.com> * move interpret Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * move fairlearn Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * move dashboard Signed-off-by: Ke Xu <xuke@microsoft.com> * fix eqeqeq Signed-off-by: Ke Xu <xuke@microsoft.com> * merger settings and plugin Signed-off-by: Ke Xu <xuke@microsoft.com> * merge rules and add array return Signed-off-by: Ke Xu <xuke@microsoft.com> * turn on more lint rule and fix Signed-off-by: Ke Xu <xuke@microsoft.com> * more rules Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * add router Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix css Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix yarn start Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix import lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix office fabric import Signed-off-by: Ke Xu <xuke@microsoft.com> * fix office fabric Signed-off-by: Ke Xu <xuke@microsoft.com> * fix quote Signed-off-by: Ke Xu <xuke@microsoft.com> * array type Signed-off-by: Ke Xu <xuke@microsoft.com> * fix constructor Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fir member order Signed-off-by: Ke Xu <xuke@microsoft.com> * add no-unbound linter Signed-off-by: Ke Xu <xuke@microsoft.com> * move files Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix bind lint Signed-off-by: Ke Xu <xuke@microsoft.com> * comment out unused function Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com>
2020-08-04 03:38:17 +03:00
config.node = {
module: "empty",
dgram: "empty",
dns: "mock",
fs: "empty",
http2: "empty",
net: "empty",
tls: "empty",
child_process: "empty"
};
config.module.rules.push({
test: /\.py$/i,
use: "raw-loader"
});
config.module.rules.unshift({
test: /\.worker\.ts$/i,
loader: "worker-loader",
options: {
inline: "no-fallback"
}
});
if (process.env.debug) {
require("fs-extra").writeJSONSync("./webpack.json", config, {
spaces: 2
});
}
return config;
Xuke/add mono repo (#7) * add monorepo Signed-off-by: Ke Xu <xuke@microsoft.com> * add react Signed-off-by: Ke Xu <xuke@microsoft.com> * add lib Signed-off-by: Ke Xu <xuke@microsoft.com> * move ml chart lib Signed-off-by: Ke Xu <xuke@microsoft.com> * change to use style over js Signed-off-by: Ke Xu <xuke@microsoft.com> * add type Signed-off-by: Ke Xu <xuke@microsoft.com> * add external Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * remove old folder Signed-off-by: Ke Xu <xuke@microsoft.com> * move interpret Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * move fairlearn Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * move dashboard Signed-off-by: Ke Xu <xuke@microsoft.com> * fix eqeqeq Signed-off-by: Ke Xu <xuke@microsoft.com> * merger settings and plugin Signed-off-by: Ke Xu <xuke@microsoft.com> * merge rules and add array return Signed-off-by: Ke Xu <xuke@microsoft.com> * turn on more lint rule and fix Signed-off-by: Ke Xu <xuke@microsoft.com> * more rules Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * add router Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix css Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix yarn start Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix import lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix office fabric import Signed-off-by: Ke Xu <xuke@microsoft.com> * fix office fabric Signed-off-by: Ke Xu <xuke@microsoft.com> * fix quote Signed-off-by: Ke Xu <xuke@microsoft.com> * array type Signed-off-by: Ke Xu <xuke@microsoft.com> * fix constructor Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fir member order Signed-off-by: Ke Xu <xuke@microsoft.com> * add no-unbound linter Signed-off-by: Ke Xu <xuke@microsoft.com> * move files Signed-off-by: Ke Xu <xuke@microsoft.com> * fix lint Signed-off-by: Ke Xu <xuke@microsoft.com> * fix bind lint Signed-off-by: Ke Xu <xuke@microsoft.com> * comment out unused function Signed-off-by: Ke Xu <xuke@microsoft.com> * fix build Signed-off-by: Ke Xu <xuke@microsoft.com>
2020-08-04 03:38:17 +03:00
};