Skip to content

While used with AgressiveSplittingPlugin doesn't emit chunks to html file #804

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

Closed
Morishiri opened this issue Nov 2, 2017 · 5 comments
Closed
Labels

Comments

@Morishiri
Copy link

Morishiri commented Nov 2, 2017

Description

While used with Aggressive Splitting Plugin - chunks are not being emitted into html file.

Error Message & Stack Trace

N/A

Config

Copy the relevant section from webpack.config.js.

const webpack = require('webpack');
const path = require('path');
const htmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: './index.js',
    output: {
        filename: '[id].bundle.js',
        path: path.resolve(__dirname, 'dist')
    },
    plugins: [
        new webpack.optimize.AggressiveSplittingPlugin({
            maxSize: 20 //small size because of small input files
        }),
        new htmlWebpackPlugin({
            filename: 'ready.html'
        })
    ]
}

Copy your template file:

Using default

Relevant Links

Here is a repository with minimal reporductible example: https://github.com/Morishiri/hwp-asp-plugins-error output is located in dist directory.

Environment

Tell us which operating system you are using, as well as which versions of Node.js, npm, webpack, and html-webpack-plugin. Run the following to get it quickly:

$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v6.11.2
linux 4.13.5-200.fc26.x86_64
$ npm --version
3.10.10
$ npm ls webpack
[email protected] /home/xxx/yyy/hwp-asp-error-repo
└── [email protected] 
$ npm ls html-webpack-plugin
[email protected] /home/xxx/yyy/hwp-asp-error-repo
└── [email protected] 
@Morishiri Morishiri changed the title Yet another problem with Agressive Splitting Plugin While ussed with AgressiveSplittingPlugin doesn't emit chunks to html file Nov 2, 2017
@mastilver
Copy link
Collaborator

Thank you for the detailed issue! :)

Here is a repository with minimal reporductible example: https://github.com/Morishiri/hwp-asp-plugins-output is located in dist directory.

The link is dead

@Morishiri
Copy link
Author

Oh, sorry - typo. Here it is: https://github.com/Morishiri/hwp-asp-plugins-error . Also updated in issue description.

@Morishiri Morishiri changed the title While ussed with AgressiveSplittingPlugin doesn't emit chunks to html file While used with AgressiveSplittingPlugin doesn't emit chunks to html file Nov 3, 2017
@jantimon
Copy link
Owner

jantimon commented May 21, 2018

@Morishiri could you please try if #953 solves this issue?

npm i html-webpack-plugin@next

@Morishiri
Copy link
Author

@jantimon Sorry for long time without response. I was not on github for a moment.

I tried that and it looks like it is working right now.

I pushed the new results to fixed (https://github.com/Morishiri/hwp-asp-plugins-error/tree/fixed) branch so you could see for yourself.

@lock
Copy link

lock bot commented Jul 1, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants