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