corvée(dépendances) ajoute Carbon Fields
This commit is contained in:
parent
135cc65eed
commit
62368587e5
459 changed files with 72750 additions and 26 deletions
40
web/vendor/htmlburger/carbon-fields/bin/webpack.vendor.js
vendored
Normal file
40
web/vendor/htmlburger/carbon-fields/bin/webpack.vendor.js
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
* External dependencies.
|
||||
*/
|
||||
const webpack = require( 'webpack' );
|
||||
const { merge } = require( 'webpack-merge' );
|
||||
|
||||
/**
|
||||
* Internal dependencies.
|
||||
*/
|
||||
const base = require( './webpack.base' );
|
||||
const paths = require( './paths' );
|
||||
const wpPackages = require( './wp-packages' );
|
||||
|
||||
const config = {
|
||||
entry: {
|
||||
vendor: './packages/vendor/index.js'
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = [
|
||||
merge( base, config, {
|
||||
output: {
|
||||
path: paths.gutenbergBuildPath
|
||||
},
|
||||
externals: Object.assign( {}, wpPackages.externals, {
|
||||
'lodash': 'lodash',
|
||||
'react': 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
'jquery': 'jQuery',
|
||||
} )
|
||||
} ),
|
||||
merge( base, config, {
|
||||
output: {
|
||||
path: paths.classicBuildPath
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin( wpPackages.providers )
|
||||
]
|
||||
} )
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue