Skip to content

Instantly share code, notes, and snippets.

@bennett39
Last active March 5, 2021 13:34
Show Gist options
  • Save bennett39/e6cb6b7c6a7906f3335458ab1ebe70a8 to your computer and use it in GitHub Desktop.
Save bennett39/e6cb6b7c6a7906f3335458ab1ebe70a8 to your computer and use it in GitHub Desktop.
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