Open GabrielDelepine opened 6 years ago
+1
@GabrielDelepine @s1nz Hi! I'm using ES6/7 syntax for webpack config files. To do this, rename webpack.config.js files to webpack.config.babel.js | webpack.config.dev.babel.js | webpack.config.prod.babel.js
You can use by requiring the default export.
const excludeFiles = require('postcss-exclude-files').default;
I am using the vue.config.js to edit my webpack config so changing the name of the file is not an option and the const excludeFiles = require('postcss-exclude-files').default;
solution does not work for me in this case.
This doesn't unfortunately work with next.js. Can you please remove the default export and move to module.exports
Hi
I have a little question How to use this module with the basic
require('postcss-exclude-files')
syntax ?const excludeFiles = require('postcss-exclude-files')
simply does not work. I am getting the following errorTypeError: excludeFiles is not a function
In the readme file you load postcss-exclude-files from a path, not from the node_modules. Is it intentional?
import excludeFiles from './app/lib/postcss-exclude-files'
Thanks