Last active
March 5, 2021 13:34
-
-
Save bennett39/e6cb6b7c6a7906f3335458ab1ebe70a8 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 path = require('path'); | |
module.exports = { | |
publicPath: '/static/src/vue/dist/', // Should be STATIC_URL + path/to/build | |
outputDir: path.resolve(__dirname, '../static/src/vue/dist/'), // Output to a directory in STATICFILES_DIRS | |
filenameHashing: false, // Django will hash file names, not webpack | |
runtimeCompiler: true, // See: https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only | |
devServer: { | |
writeToDisk: true, // Write files to disk in dev mode, so Django can serve the assets | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment