File tree Expand file tree Collapse file tree
packages/cgb-scripts/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 */
2222
2323const paths = require ( './paths' ) ;
24+ const externals = require ( './externals' ) ;
2425const autoprefixer = require ( 'autoprefixer' ) ;
2526const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
2627
@@ -118,11 +119,5 @@ module.exports = {
118119 stats : 'minimal' ,
119120 // stats: 'errors-only',
120121 // Add externals.
121- externals : {
122- react : 'React' ,
123- 'react-dom' : 'ReactDOM' ,
124- ga : 'ga' , // Old Google Analytics.
125- gtag : 'gtag' , // New Google Analytics.
126- jquery : 'jQuery' , // import $ from 'jquery' // Use the WordPress version.
127- } ,
122+ externals : externals ,
128123} ;
Original file line number Diff line number Diff line change 2222
2323const paths = require ( './paths' ) ;
2424const webpack = require ( 'webpack' ) ;
25+ const externals = require ( './externals' ) ;
2526const autoprefixer = require ( 'autoprefixer' ) ;
2627const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
2728
@@ -146,11 +147,5 @@ module.exports = {
146147 stats : 'minimal' ,
147148 // stats: 'errors-only',
148149 // Add externals.
149- externals : {
150- react : 'React' ,
151- 'react-dom' : 'ReactDOM' ,
152- ga : 'ga' , // Old Google Analytics.
153- gtag : 'gtag' , // New Google Analytics.
154- jquery : 'jQuery' , // import $ from 'jquery' // Use the WordPress version.
155- } ,
150+ externals : externals ,
156151} ;
You can’t perform that action at this time.
0 commit comments