Add file with variables at build time? #8978
-
I have a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Or is there some completely other process I should be using to add a file (that is my own) to the build output but needs some variables supplied at build time? |
Beta Was this translation helpful? Give feedback.
-
Ok I figured this out. First install this package:
Then inside
Then after
Works great! |
Beta Was this translation helpful? Give feedback.
Ok I figured this out. First install this package:
npm i create-file-webpack --save-dev
Then inside
quasar.conf.js
add this line at the top:const CreateFileWebpack = require('create-file-webpack')
Then after
extendWebpack (cfg) {
add something likeWorks great!