How to use the @wordpress/scripts/utils.camelCaseDash function in @wordpress/scripts

To help you get started, we’ve selected a few @wordpress/scripts 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 WordPress / gutenberg / webpack.config.js View on Github external
entry: gutenbergPackages.reduce( ( memo, packageName ) => {
		const name = camelCaseDash( packageName );
		memo[ name ] = `./packages/${ packageName }`;
		return memo;
	}, {} ),
	output: {
github LearnPress / learnpress / tools / webpack.app.js View on Github external
entry: Object.keys(packages).reduce((memo, packageName) => {
            const name = camelCaseDash(packageName);
            memo[name] = `./assets/src/js/frontend/app/${ packageName }`;
            return memo;
        }, {}),
        output: {