12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
// Import the original config from the @wordpress/scripts package.
|
|
const defaultConfig = require("@wordpress/scripts/config/webpack.config");
|
|
|
|
// Add any a new entry point by extending the webpack config.
|
|
module.exports = {
|
|
...defaultConfig,
|
|
entry: {
|
|
...defaultConfig.entry(),
|
|
variations: "./src/core-variants/variants.js",
|
|
},
|
|
};
|