UNPKG

azure-storage-webpack-plugin

Version:

Webpack plugin that uploads webpack assets to a Azure storage account.

18 lines (15 loc) 408 B
var path = require('path'); function getAssets(compilation) { var assets = []; compilation.chunks.forEach(function(chunk) { chunk.files.forEach(function(filePath) { assets.push({ filePath: filePath, fileContent: compilation.assets[filePath].source()}); }); }); return assets; }; module.exports = { getAssets };