-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webpack config updated to include the dist folder
- Loading branch information
Ajay Maurya
authored and
Ajay Maurya
committed
Feb 1, 2022
1 parent
0bc18ed
commit 65fa58e
Showing
5 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' ); | ||
const path = require( 'path' ); | ||
|
||
module.exports = { | ||
...defaultConfig, | ||
output: { | ||
...defaultConfig.output, | ||
path: path.resolve( process.cwd(), 'dist' ), | ||
}, | ||
entry: { | ||
'simple-local-avatars': path.resolve( process.cwd(), 'assets/js', 'simple-local-avatars.js' ), | ||
} | ||
}; |