forked from elightup/slim-seo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapps.webpack.config.js
More file actions
23 lines (21 loc) · 823 Bytes
/
Copy pathapps.webpack.config.js
File metadata and controls
23 lines (21 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Import the original config from the @wordpress/scripts package.
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
// Utilities.
const path = require( 'path' );
// Add any a new entry point by extending the webpack config.
module.exports = {
...defaultConfig,
...{
entry: {
single: './js/meta-tags/Single.js', // Meta tags for singular pages.
"meta-tags": './js/meta-tags/Settings.js', // Settings > Meta Tags tab.
redirection: './js/redirection/App.js', // Redirection app.
"redirection-post": './js/redirection/Post.js', // Redirection post app.
robots: './js/robots/App.js', // Robots app.
"link-attributes": './js/link-attributes/block-editor/index.js', // Link attributes in Block Editor
},
output: {
path: path.resolve( __dirname, 'js/build' ),
},
},
};