How to use the @ff0000-ad-tech/wp-deploy-manager.babel function in @ff0000-ad-tech/wp-deploy-manager

To help you get started, we’ve selected a few @ff0000-ad-tech/wp-deploy-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ff0000-ad-tech / tmpl-velvet-base / webpack.config.js View on Github external
*/
	const loaders = [
		// loads images and fonts
		{
			test: [].concat(imageIncludes).concat(fontIncludes),
			use: [{
				loader: '@ff0000-ad-tech/fba-loader',
				options: {
					emitFile: false
				}
			}]
		}
	]

	// get Babel loaders based on environment (debug or production)
	const babelLoaderCreator = DM.deploy.get().output.debug ? DM.babel.debug : DM.babel.production

	log(`using ${DM.deploy.get().output.debug ? 'debug' : 'production'} Babel settings`)

	// FBA type objects used with binary-imports module
	// (https://github.com/ff0000-ad-tech/binary-imports)
	const fbaTypes = [{
			type: 'fbAi',
			include: imageIncludes
		},
		{
			type: 'fbAf',
			include: fontIncludes
		}
	]

	const babelLoaders = babelLoaderCreator({
github ff0000-ad-tech / tmpl-standard-base / webpack.config.js View on Github external
// loads images and fonts
		{
			test: [].concat(imageIncludes).concat(fontIncludes),
			use: [
				{
					loader: '@ff0000-ad-tech/fba-loader',
					options: {
						emitFile: false
					}
				}
			]
		}
	]

	// get Babel loaders based on environment (debug or production)
	const babelLoaderCreator = DM.deploy.get().output.debug ? DM.babel.debug : DM.babel.production

	log(`using ${DM.deploy.get().output.debug ? 'debug' : 'production'} Babel settings`)

	// FBA type objects used with binary-imports module
	// (https://github.com/ff0000-ad-tech/binary-imports)
	const fbaTypes = [
		{
			type: 'fbAi',
			include: imageIncludes
		},
		{
			type: 'fbAf',
			include: fontIncludes
		}
	]