Skip to content

Commit

Permalink
Make webpack.config.js path relative
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Apr 23, 2019
1 parent c15e370 commit f220fac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/calypso-build/bin/cb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env node

/**
* External dependencies
*/
const path = require( 'path' );

if ( ! process.argv.some( arg => arg.startsWith( '--config' ) ) ) {
process.argv.push( '--config', require.resolve( '@automattic/calypso-build/webpack.config.js' ) );
process.argv.push( '--config', path.join( __dirname, '..', 'webpack.config.js' ) );
}

require( 'webpack-cli' );

0 comments on commit f220fac

Please sign in to comment.