Skip to content

Commit

Permalink
Update to @nuxtjs/style-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
shoshi committed Feb 12, 2019
1 parent 2cc551e commit 51843ab
Show file tree
Hide file tree
Showing 4 changed files with 1,614 additions and 1,301 deletions.
4 changes: 2 additions & 2 deletions components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
&:before {
content: "";
background-image: url("~/assets/images/map-pin.svg");
background-image: url("~assets/images/map-pin.svg");
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
Expand All @@ -72,7 +72,7 @@
}
.date:before {
background-image: url("~/assets/images/map-calendar.svg");
background-image: url("~assets/images/map-calendar.svg");
}
.leaflet-popup-close-button {
Expand Down
10 changes: 6 additions & 4 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,19 @@ module.exports = {
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'nuxt-sass-resources-loader'
'@nuxtjs/style-resources'
],
/*
** Axios module configuration
*/
axios: {
// See https://github.com/nuxt-community/axios-module#options
},
sassResources: [
'~/assets/css/_setup.scss'
],
styleResources: {
scss: [
'~assets/css/_setup.scss'
]
},

/*
** Build configuration
Expand Down
Loading

0 comments on commit 51843ab

Please sign in to comment.