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

Not found in next Plugin after generate the json file #150

Closed
TerryChenUI opened this issue May 4, 2018 · 2 comments
Closed

Not found in next Plugin after generate the json file #150

TerryChenUI opened this issue May 4, 2018 · 2 comments

Comments

@TerryChenUI
Copy link

TerryChenUI commented May 4, 2018

I want to read the manifest.json in next plugin, but it not find, is is possible to do it ?

        new ManifestPlugin(),
        new ReplaceInFileWebpackPlugin([{
            dir: 'dist',
            test: /\.html$/,
            rules: [{
                search: /\/js\/common\.(css|js)/ig,
                replace: function (match) {
                    console.log(match);
                    console.log('test:', require('./dist/js/manifest.json')); // Not work
                    return 'test';
                }
            }]
        }])
@mastilver
Copy link
Contributor

The manifest hook will always run last

I guess we will need to add an options to choose when to run hook as suggested here #141 (comment)

@shellscape
Copy link
Owner

Hey all! I've taken over maintenance of the plugin and am doing some housecleaning. If this is still a need, please open a new issue using the Feature template.

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

3 participants