@luban-cli/cli-plugin-service
Version:
A development runtime environment dependency
16 lines • 614 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const webpack_node_externals_1 = __importDefault(require("webpack-node-externals"));
class Externals {
apply(args) {
const { api } = args;
api.chainWebpack("server", (webpackConfig) => {
webpackConfig.externals([webpack_node_externals_1.default({ allowlist: /\.(css|less)$/ })]);
});
}
}
exports.default = Externals;
//# sourceMappingURL=externals.js.map