-
Notifications
You must be signed in to change notification settings - Fork 7
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
files in output will been default exclude? #8
Comments
Look like my problem.
|
You mean you wanna delete some new generated files by webpack? |
@jackypan1989 yes {
entry: {
'main': './src/index.js',
'core': ['a.scss', 'b.scss']
},
output: {
filename: '[name].js',
library: 'Test',
path: './dist'
},
plugins: [
new ExtractTextPlugin({
filename: '[name].css',
})
]
} when build, will generate three files in output path:
I wanna customize the name of css file, so I must import all scss files in an entry, but this will generate a useless javascript file, so I wanna delete |
almost the same for me. I use webpack to bundle multiple web application but some are just html/css/js so no need of main.js file created by webpack. |
I will checkout this issue soon. |
@jackypan1989 thanks. |
https://github.com/jackypan1989/del-webpack-plugin/releases/tag/v1.1.0 You can set keepGeneratedAssets to Notice: You may need to write some exclude patterns to keep files. |
I want to delete files in output path, but I see the source code has auto ignore the files in output path
The text was updated successfully, but these errors were encountered: