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

Modules still showing in output despite stats configuration #4141

Closed
joezimjs opened this issue Jan 30, 2017 · 1 comment
Closed

Modules still showing in output despite stats configuration #4141

joezimjs opened this issue Jan 30, 2017 · 1 comment
Labels

Comments

@joezimjs
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Outputting module stats when stats: none

If the current behavior is a bug, please provide the steps to reproduce.
My config:

const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const BabelMinifierPlugin = require('babili-webpack-plugin')

const ENV = process.env.NODE_ENV && process.env.NODE_ENV.toLowerCase() || (process.env.NODE_ENV = 'development')

let config = {
	entry: ["./src/main.js"],
	output: {
		path: path.resolve(process.cwd(), "dist"),
		filename: "app.js"
	},
	module: {
		rules: [
			{
				test: /\.(jsx?|vue)$/,
				exclude: /node_modules/,
				enforce: 'pre',
				loader: 'eslint-loader',
				options: {
					configFile: './config/.eslintrc'
				}
			},
			{
				test: /\.jsx?$/,
				exclude: /node_modules/,
				loader: 'babel-loader',
				options: {
					presets: [ 'es2016', 'es2017' ]
				}
			},
			{
				test: /\.vue$/,
				loader: 'vue-loader',
				options: {
					cssModules: {
						localIdentName: '[name]__[local]__[hash:base64:5]',
						camelCase: true
					}
				}
			}
		]
	},
	plugins: [
		new webpack.DefinePlugin({
			CONFIG: { a:1, b:2, debug: ENV !== "production" },
			process: { env: { NODE_ENV: JSON.stringify(ENV) } },
			ENV: JSON.stringify(ENV)
		}),
		new HtmlWebpackPlugin({
			title: 'Webpack Build Process',
			template: 'src/index.html'
		})
	],
	performance: {
		hints: ENV === "production"
	},
	stats: 'none'
}

if (ENV === "production")
	config.plugins.push(new BabelMinifierPlugin())

module.exports = config

despite stats: 'none', I'm still getting the following output:

   [0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
   [1] ./~/vue-style-loader/addStyles.js 6.24 kB {0} [built]
   [2] ./~/vue/dist/vue.runtime.common.js 162 kB {0} [built]
   [3] ./src/main.js 217 bytes {0} [built]
  [10] ./src/app.js 459 bytes {0} [built]
  [11] ./src/router.js 1.06 kB {0} [built]
  [30] ./~/vue-router/dist/vue-router.common.js 56.1 kB {0} [built]
  [37] (webpack)/buildin/global.js 506 bytes {0} [built]
  [38] multi main 28 bytes {0} [built]
    + 30 hidden modules

I also tried using the object with specific options and still the modules were showing.

What is the expected behavior?
There should be no output at all

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Node: 7.4.0
webpack: 2.2.1

sokra added a commit that referenced this issue Jan 31, 2017
sokra added a commit that referenced this issue Jan 31, 2017
sokra added a commit that referenced this issue Feb 1, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue Feb 1, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue Feb 1, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue Feb 9, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue Apr 11, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue May 4, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue May 4, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue May 16, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
sokra added a commit that referenced this issue May 19, 2017
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
@sepo-one
Copy link

set maxModules: 0 as a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants