diff --git a/Composer/packages/client/config/webpack.config.js b/Composer/packages/client/config/webpack.config.js index d2e992a772..4262b06a6a 100644 --- a/Composer/packages/client/config/webpack.config.js +++ b/Composer/packages/client/config/webpack.config.js @@ -29,9 +29,6 @@ const paths = require('./paths'); // Source maps are resource heavy and can cause out of memory issue for large source files. const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'; -// Some apps do not need the benefits of saving a web request, so not inlining the chunk -// makes for a smoother build process. -const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK !== 'false'; // Check if TypeScript is setup const useTypeScript = fs.existsSync(paths.appTsConfig); @@ -284,6 +281,7 @@ module.exports = function(webpackEnv) { options: { formatter: require.resolve('react-dev-utils/eslintFormatter'), eslintPath: require.resolve('eslint'), + quiet: true, }, loader: require.resolve('eslint-loader'), }, @@ -421,7 +419,7 @@ module.exports = function(webpackEnv) { {}, { inject: true, - filename: 'index.html', + filename: 'index.ejs', template: paths.appHtml, chunks: ['main'], }, @@ -429,15 +427,6 @@ module.exports = function(webpackEnv) { ? { minify: { removeComments: true, - collapseWhitespace: true, - removeRedundantAttributes: true, - useShortDoctype: true, - removeEmptyAttributes: true, - removeStyleLinkTypeAttributes: true, - keepClosingSlash: true, - minifyJS: true, - minifyCSS: true, - minifyURLs: true, }, } : undefined @@ -449,7 +438,7 @@ module.exports = function(webpackEnv) { {}, { inject: true, - filename: 'extensionContainer.html', + filename: 'extensionContainer.ejs', template: paths.extensionContainerHtml, chunks: ['extension'], }, @@ -457,23 +446,11 @@ module.exports = function(webpackEnv) { ? { minify: { removeComments: true, - collapseWhitespace: true, - removeRedundantAttributes: true, - useShortDoctype: true, - removeEmptyAttributes: true, - removeStyleLinkTypeAttributes: true, - keepClosingSlash: true, - minifyJS: true, - minifyCSS: true, - minifyURLs: true, }, } : undefined ) ), - // Inlines the webpack runtime script. This script is too small to warrant - // a network request. - isEnvProduction && shouldInlineRuntimeChunk && new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime~.+[.]js/]), // Makes some environment variables available in index.html. // The public URL is available as %PUBLIC_URL% in index.html, e.g.: // diff --git a/Composer/packages/client/public/extensionContainer.html b/Composer/packages/client/public/extensionContainer.html index 72f7e3e22e..d9c6db62ba 100644 --- a/Composer/packages/client/public/extensionContainer.html +++ b/Composer/packages/client/public/extensionContainer.html @@ -23,8 +23,23 @@ Learn how to configure a non-root public URL by running `npm run build`. --> React App + + + -