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

get wrong css order after using HashedModuleIdsPlugin #5733

Closed
silaike opened this issue Sep 28, 2017 · 5 comments
Closed

get wrong css order after using HashedModuleIdsPlugin #5733

silaike opened this issue Sep 28, 2017 · 5 comments

Comments

@silaike
Copy link

silaike commented Sep 28, 2017

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

What is the current behavior?
get wrong css order after using HashedModuleIdsPlugin

If the current behavior is a bug, please provide the steps to reproduce.
webpack plugin configs.

       ...
	plugins: [
		new HtmlWebpackPlugin( {
			filename: 'index.html',
			template: 'index.ejs',
			minify: {
				collapseWhitespace: true,
				minifyJS: true
			}
		} ),

		new ExtractTextPlugin( {
			filename: 'css/[name].[contenthash:8].css',
			allChunks: true,
		} ),

		new OptimizeCssAssetsPlugin( {
			cssProcessor: require( 'cssnano' ),
			cssProcessorOptions: {
				autoprefixer: false
			}
		} ),

		new webpack.HashedModuleIdsPlugin(),

		new webpack.optimize.CommonsChunkPlugin( {
			names: [ 'vendor', 'manifest' ],
		} ),

		new webpack.optimize.CommonsChunkPlugin( {
			async: 'async-common',
			minChunks: ( module, count ) => (
				count >= 2
			),
		} ),

		new webpack.DefinePlugin( {
			'process.env': {
				NODE_ENV: JSON.stringify( 'production' )
			}
		} ),

		new webpack.optimize.UglifyJsPlugin( {
			compress: {
				warnings: false
			},
			comments: false
		} ),

		new webpack.optimize.ModuleConcatenationPlugin(),
	]

What is the expected behavior?
remove HashedModuleIdsPlugin then css order will be right.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack version v3.6.0

@sgal
Copy link

sgal commented Sep 28, 2017

Same issue with NamedModulesPlugin. Fails on v3.5.1 as well.
Might be related to webpack-contrib/extract-text-webpack-plugin#601

@Kubaka1
Copy link

Kubaka1 commented Oct 11, 2017

Same issue +1... @sokra can help this?

@cletusw
Copy link
Contributor

cletusw commented Oct 21, 2017

Likely fix merged: d5a1de21a65532f66b05a1f6c2146574ce385567

@alexander-akait
Copy link
Member

alexander-akait commented Feb 6, 2018

@webpack-bot move to webpack-contrib/extract-text-webpack-plugin

Failed test webpack-contrib/extract-text-webpack-plugin#710

@webpack-bot
Copy link
Contributor

I've moved it to webpack-contrib/extract-text-webpack-plugin.

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

6 participants