mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
873 B
TypeScript
32 lines
873 B
TypeScript
import * as webpack from 'webpack';
|
|
import AssetsPlugin = require('assets-webpack-plugin');
|
|
|
|
const config: webpack.Configuration = {
|
|
plugins: [
|
|
new AssetsPlugin(),
|
|
new AssetsPlugin({
|
|
filename: 'assets.json'
|
|
}),
|
|
new AssetsPlugin({
|
|
entrypoints: true,
|
|
filename: 'assets.json',
|
|
fullPath: false,
|
|
fileTypes: ['css'],
|
|
includeManifest: true,
|
|
includeAllFileTypes: false,
|
|
keepInMemory: true,
|
|
manifestFirst: true,
|
|
path: '/foo/bar',
|
|
prettyPrint: true,
|
|
processOutput: (assets) => (
|
|
'window.assets = ' + JSON.stringify(assets)
|
|
),
|
|
update: true,
|
|
useCompilerPath: true,
|
|
metadata: {
|
|
meta: 'data'
|
|
},
|
|
})
|
|
]
|
|
};
|