Skip to content

Instantly share code, notes, and snippets.

@EndangeredMassa
Last active January 9, 2022 20:01
Show Gist options
  • Save EndangeredMassa/87209850b2506ec021866e39bcd028d8 to your computer and use it in GitHub Desktop.
Save EndangeredMassa/87209850b2506ec021866e39bcd028d8 to your computer and use it in GitHub Desktop.
const IS_DEV = process.env.NODE_ENV === 'development';
let environmentSafelist = [];
if (IS_DEV) {
environmentSafelist.push({
pattern: /.+/, // allow everything
});
}
module.exports = {
content: [
"./index.html",
"./app/**/*.{hbs,js,html}"
],
safelist: [
'active',
...environmentSafelist
]
}
@knownasilya
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment