Skip to content

Commit

Permalink
fix: move dependencies out of footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Butterworth authored May 10, 2019
2 parents 46d464d + 3dd9b25 commit f2a13b8
Show file tree
Hide file tree
Showing 8 changed files with 6,740 additions and 5,522 deletions.
6 changes: 3 additions & 3 deletions config/webpack.dev.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This is the dev Webpack config. All settings here should prefer a fast build
// time at the expense of creating larger, unoptimized bundles.
const Merge = require('webpack-merge');
const Merge = require('webpack-merge'); // eslint-disable-line import/no-extraneous-dependencies
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin'); // eslint-disable-line import/no-extraneous-dependencies
const webpack = require('webpack'); // eslint-disable-line import/no-extraneous-dependencies

const commonConfig = require('./webpack.common.config.js');

Expand Down
16 changes: 14 additions & 2 deletions config/webpack.prod.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This is the prod Webpack config. All settings here should prefer smaller,
// optimized bundles at the expense of a longer build time.
const Merge = require('webpack-merge');
const Merge = require('webpack-merge'); // eslint-disable-line import/no-extraneous-dependencies
const commonConfig = require('./webpack.common.config.js');
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin'); // eslint-disable-line import/no-extraneous-dependencies

module.exports = Merge.smart(commonConfig, {
mode: 'production',
Expand Down Expand Up @@ -35,6 +35,18 @@ module.exports = Merge.smart(commonConfig, {
amd: 'ReactDOM',
root: 'ReactDOM',
},
'react-intl': {
commonjs: 'react-intl',
commonjs2: 'react-intl',
amd: 'ReactIntl',
root: 'ReactIntl',
},
'@edx/paragon': {
commonjs: '@edx/paragon',
commonjs2: '@edx/paragon',
amd: 'Paragon',
root: 'Paragon',
},
},
plugins: [
// Cleans the dist directory before each build
Expand Down
Loading

0 comments on commit f2a13b8

Please sign in to comment.