rsnext/packages/next/build/bundles/autodll-webpack-plugin.js
2020-03-30 16:26:25 -04:00

14 lines
486 B
JavaScript

const path = require('path')
module.exports = distDir => {
const autodllCachePath = path.resolve(
path.join(distDir, 'cache', 'autodll-webpack-plugin')
)
const autoDllWebpackPluginPaths = require('autodll-webpack-plugin/lib/paths')
autoDllWebpackPluginPaths.cacheDir = autodllCachePath
autoDllWebpackPluginPaths.getManifestPath = hash => bundleName =>
path.resolve(autodllCachePath, hash, `${bundleName}.manifest.json`)
return require('autodll-webpack-plugin')
}