Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is asking to make file sizes larger #73

Open
arielsilvestri opened this issue Oct 31, 2017 · 2 comments
Open

Plugin is asking to make file sizes larger #73

arielsilvestri opened this issue Oct 31, 2017 · 2 comments

Comments

@arielsilvestri
Copy link

Hey team,

Using the following configuration:

new WebpackMonitor({
  capture: true,
  launch: true
}),

I receive the following output:

screen shot 2017-10-31 at 2 59 34 pm

I am running the monitor on a production build of my app. I am curious if I am doing something wrong, or if there's a bug that seems to have cropped up recently.

@mbehzad
Copy link
Contributor

mbehzad commented Nov 1, 2017

Hi @silvestrijonathan, could you share your webpack + babel config here?

@arielsilvestri
Copy link
Author

@mbehzad It uses the defaults provided by create-react-app, the only additions are the production build plugins:

  plugins: [
    new InterpolateHtmlPlugin(env.raw),
    new HtmlWebpackPlugin({
      inject: true,
      template: paths.appHtml,
      minify: {
        removeComments: true,
        collapseWhitespace: true,
        removeRedundantAttributes: true,
        useShortDoctype: true,
        removeEmptyAttributes: true,
        removeStyleLinkTypeAttributes: true,
        keepClosingSlash: true,
        minifyJS: true,
        minifyCSS: true,
        minifyURLs: true,
      }
    }),
    new webpack.NamedModulesPlugin(),
    new UglifyJSPlugin(),
    new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': JSON.stringify('production')
      }
    }),
    new ExtractTextPlugin({
      filename: cssFilename,
      ignoreOrder: true
    }),
    new CaseSensitivePathsPlugin(),
    new WatchMissingNodeModulesPlugin(paths.appNodeModules),
  ]

mbehzad added a commit to mbehzad/webpackmonitor that referenced this issue Nov 2, 2017
…on information (fix for webpackmonitor#73)

captures `devtool` option from the webpack build and stores with other data,
shows a recomendation when wrong devtool option for the sourceMap was used for the production build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants