Last active
October 14, 2019 18:19
-
-
Save jkroepke/9485f979e24e0cae8f7044b52d036f8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WebpackFilePreprocessorPlugin = require('@jkroepke/webpack-file-preprocessor-plugin'); | |
module.exports = config => { | |
config.plugins.push( | |
new WebpackFilePreprocessorPlugin({ | |
pattern: /\.(json)$/, | |
process: source => JSON.stringify(JSON.parse(source)), | |
}) | |
); | |
return config; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment