webpack-genius
Version:
**For chinese developers:** you'd better add taobao mirror before everything start. Or you may fail to install. ```bash yarn config set registry http://registry.npm.taobao.org ```
16 lines (15 loc) • 561 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setOutput = void 0;
var tslib_1 = require("tslib");
var path_1 = tslib_1.__importDefault(require("path"));
exports.setOutput = function (_, genius) {
return {
path: path_1.default.resolve('dist', genius.getEnvironment()),
publicPath: './',
filename: "scripts/[name]." + genius.switchChunkHash() + ".js",
// must be absolute path
chunkFilename: "scripts/chunk." + genius.switchChunkHash() + ".js",
pathinfo: false,
};
};