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

Compatibility with CleanWebpackPlugin? #53

Open
nawlbergs opened this issue Apr 9, 2019 · 0 comments
Open

Compatibility with CleanWebpackPlugin? #53

nawlbergs opened this issue Apr 9, 2019 · 0 comments

Comments

@nawlbergs
Copy link

nawlbergs commented Apr 9, 2019

Does this plugin trigger a full build? After triggering a change... all my files get deleted except for the chunk with the file change...

for instance... all my files in dist/auth remain but the files in dist/tenant and everywhere get nuked. im assuming the dist/auth files still remain because my HtmlWebpackPlugin is running again... but CopyWebpackPlugin is not? im just confused.

entry: {
    auth:   `src/auth/index.js`
},
output: {
    filename: '[name]/[name]-bundle-[contenthash].js',
    path: path.resolve(__dirname, 'dist'),
    publicPath: "/"
},
plugins:[
    new CleanWebpackPlugin(),
    new HtmlWebpackPlugin({
      chunks: ['auth']
    }),
    // copy a bunch of files from src/tenant to dist/tenant
    new CopyWebpackPlugin([ { from:'./src/tenant', to:'tenant' } ]),
    new LiveReloadPlugin({})
]
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

1 participant