Skip to content

Commit 38834ed

Browse files
committed
👌 IMPROVE: Externals in production webpack
1 parent 9151527 commit 38834ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/cgb-scripts/config/webpack.config.prod.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ module.exports = {
147147
// stats: 'errors-only',
148148
// Add externals.
149149
externals: {
150-
'react': 'React',
150+
react: 'React',
151151
'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.
152155
},
153156
};

0 commit comments

Comments
 (0)