Skip to content

Instantly share code, notes, and snippets.

@codeitlikemiley
Last active June 10, 2019 02:36
Show Gist options
  • Select an option

  • Save codeitlikemiley/c818fa60201b6ca5ccbd0ab844aa3b46 to your computer and use it in GitHub Desktop.

Select an option

Save codeitlikemiley/c818fa60201b6ca5ccbd0ab844aa3b46 to your computer and use it in GitHub Desktop.
Vuetify loader set up
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@fortawesome/fontawesome-free": "^5.9.0",
"@mdi/font": "^3.6.95",
"@mdi/js": "^3.6.95",
"axios": "^0.19",
"bootstrap": "^4.1.0",
"cross-env": "^5.1",
"css-loader": "^2.1.1",
"inertia-vue": "github:inertiajs/inertia-vue",
"laravel-mix": "^4.0.7",
"lodash": "^4.17.5",
"material-design-icons-iconfont": "^5.0.1",
"resolve-url-loader": "^2.3.1",
"sass": "^1.21.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"vue": "^2.5.17",
"vue-template-compiler": "^2.6.10",
"vuetify": "^1.5.14",
"vuetify-loader": "^1.2.2"
module.exports = {
extends: [
'eslint:recommended',
'plugin:vue/recommended',
'plugin:import'
],
rules: {
"indent": ['error', 2],
'quotes': ['warn', 'single'],
'semi': ['warn', 'never'],
'comma-dangle': ['warn', 'always-multiline'],
'vue/max-attributes-per-line': false,
'vue/require-default-prop': false,
'vue/singleline-html-element-content-newline': false,
'import/no-unresolved': [2, {commonjs: true, and: true}],
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2
}
}
<template>
<v-app>
<v-toolbar app>
<v-toolbar-title class="headline text-uppercase">
<span>Vuetify</span>
<span class="font-weight-light">MATERIAL DESIGN</span>
</v-toolbar-title>
<v-spacer />
<v-btn
flat
href="https://github.com/vuetifyjs/vuetify/releases/latest"
target="_blank"
>
<span class="mr-2">Latest Release</span>
<v-icon>open_in_new</v-icon>
</v-btn>
</v-toolbar>
<v-content>
<HelloWorld />
</v-content>
</v-app>
</template>
<script>
import HelloWorld from '@/Shared/HelloWorld'
export default {
name: 'App',
components: {
HelloWorld,
},
data () {
return {
//
}
},
}
</script>
<template>
<v-container>
<v-layout text-xs-center wrap>
<v-flex mb-4>
<h1 class="display-2 font-weight-bold mb-3">Welcome to Vuetify</h1>
<p class="subheading font-weight-regular">
For help and collaboration with other Vuetify developers,
<br>please join our online
<a
href="https://community.vuetifyjs.com"
target="_blank"
>Discord Community</a>
</p>
</v-flex>
<v-flex mb-5 xs12>
<h2 class="headline font-weight-bold mb-3">What's next?</h2>
<v-layout justify-center>
<a
v-for="(next, i) in whatsNext"
:key="i"
:href="next.href"
class="subheading mx-3"
target="_blank"
>{{ next.text }}</a>
</v-layout>
</v-flex>
<v-flex xs12 mb-5>
<h2 class="headline font-weight-bold mb-3">Important Links</h2>
<v-layout justify-center>
<a
v-for="(link, i) in importantLinks"
:key="i"
:href="link.href"
class="subheading mx-3"
target="_blank"
>{{ link.text }}</a>
</v-layout>
</v-flex>
<v-flex xs12 mb-5>
<h2 class="headline font-weight-bold mb-3">Ecosystem</h2>
<v-layout justify-center>
<a
v-for="(eco, i) in ecosystem"
:key="i"
:href="eco.href"
class="subheading mx-3"
target="_blank"
>{{ eco.text }}</a>
</v-layout>
</v-flex>
</v-layout>
</v-container>
</template>
<script>
export default {
data: () => ({
ecosystem: [
{
text: 'vuetify-loader',
href: 'https://github.com/vuetifyjs/vuetify-loader',
},
{
text: 'github',
href: 'https://github.com/vuetifyjs/vuetify',
},
{
text: 'awesome-vuetify',
href: 'https://github.com/vuetifyjs/awesome-vuetify',
},
],
importantLinks: [
{
text: 'Documentation',
href: 'https://vuetifyjs.com',
},
{
text: 'Chat',
href: 'https://community.vuetifyjs.com',
},
{
text: 'Made with Vuetify',
href: 'https://madewithvuetifyjs.com',
},
{
text: 'Twitter',
href: 'https://twitter.com/vuetifyjs',
},
{
text: 'Articles',
href: 'https://medium.com/vuetify',
},
],
whatsNext: [
{
text: 'Explore components',
href: 'https://vuetifyjs.com/components/api-explorer',
},
{
text: 'Select a layout',
href: 'https://vuetifyjs.com/layout/pre-defined',
},
{
text: 'Frequently Asked Questions',
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions',
},
],
}),
}
</script>
<style>
</style>
const mix = require('laravel-mix')
const path = require('path')
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
mix
.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.webpackConfig({
output: { chunkFilename: 'js/[name].js?id=[chunkhash]' },
resolve: {
alias: {
vue$: 'vue/dist/vue.runtime.esm.js',
'@': path.resolve('resources/js'),
},
},
plugins:[
new VuetifyLoaderPlugin()
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment