UNPKG

@v4fire/client

Version:

V4Fire client core library

37 lines (30 loc) 798 B
'use strict'; /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ const {src, webpack} = require('@config/config'), {hash, output: outputPattern} = include('build/helpers'); /** * Returns options for `webpack.output` * * @param {(number|string)} buildId - build id * @returns {!Object} */ module.exports = function output({buildId}) { return { path: src.clientOutput(), publicPath: webpack.publicPath(), filename: `${hash(outputPattern, true)}.js`, chunkFilename: `${hash(outputPattern, true)}.js`, uniqueName: `v4fire-${buildId}`, chunkLoading: 'jsonp', chunkFormat: 'array-push', hashFunction: webpack.hashFunction(), crossOriginLoading: 'anonymous' }; };