Skip to content

Instantly share code, notes, and snippets.

@mikemunsie
Last active September 20, 2018 16:22
Show Gist options
  • Save mikemunsie/4f07ec658efd60f4074e80ca7dbba9e1 to your computer and use it in GitHub Desktop.
Save mikemunsie/4f07ec658efd60f4074e80ca7dbba9e1 to your computer and use it in GitHub Desktop.
Vue Setup

jsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"],
    }
  }
}
  • Making a SASS variables file accessible in each Vue template is super handy. In the utils.js file, add in this puppy:
scss: generateLoaders('sass').concat(
      {
        loader: 'sass-resources-loader',
        options: {
          resources: path.resolve(__dirname, '../src/styles/_variables.scss')
        }
      }
    )
  • Formatting problems on VSCode? Using Typescript and decorators are showing up on the same line after save?

https://alligator.io/vuejs/eslint-vue-vetur/

Add the following to your settings in VSCode:

"eslint.autoFixOnSave": true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment