bugfix, missing default

main v0.5.1
HerrHase 2 months ago
parent df87d48069
commit 00ba81570e

@ -24,7 +24,8 @@ module.exports = function tinyComponentsWebpack(files, options = {}) {
destination: path.resolve(process.cwd(), 'public'), destination: path.resolve(process.cwd(), 'public'),
publicPath: '/', publicPath: '/',
purge: { purge: {
src: path.join(__dirname, 'js') src: path.join(__dirname, 'js'),
safelist: []
} }
}, options) }, options)
@ -82,7 +83,8 @@ module.exports = function tinyComponentsWebpack(files, options = {}) {
filename: 'css/[name].css', filename: 'css/[name].css',
}), }),
new PurgeCSSPlugin({ new PurgeCSSPlugin({
paths: glob.sync(`${defaults.purge.src}/**/*`, { nodir: true }) paths: glob.sync(`${defaults.purge.src}/**/*`, { nodir: true }),
safelist: defaults.purge.safelist
}), }),
new ManifestPlugin({ new ManifestPlugin({
filename: 'assets-manifest.json', filename: 'assets-manifest.json',

@ -1,6 +1,6 @@
{ {
"name": "@tiny-components/webpack", "name": "@tiny-components/webpack",
"version": "0.5.0", "version": "0.5.1",
"description": "Webpack Wrapper", "description": "Webpack Wrapper",
"repository": { "repository": {
"type": "git", "type": "git",

Loading…
Cancel
Save