SHARE
TWEET

Untitled

a guest Jul 16th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.   assetsDir: 'assets',
  3.   runtimeCompiler: true,
  4.   productionSourceMap: false,
  5.  
  6.   css: {
  7.     modules: true,
  8.     loaderOptions: {
  9.       css: {
  10.         localIdentName: "[HASH:8]"
  11.       },
  12.       sass: {
  13.         data: `
  14.           @import "@/modules/core/_variable.module.sass"
  15.           @import "@/modules/main/_global.module.sass"
  16.           @import "@/modules/app/_div.module.sass"
  17.         `
  18.       }
  19.     }
  20.   }
  21. };
  22.      
  23. <template>
  24.   <div :class="$style['page-container']"></div>
  25. </template>
  26.      
  27. .page-container
  28.   width: 100px
  29.   height: 100px
  30.   background: red
  31.      
  32. import Style from "./modules/app/_div.module.sass";
  33.  
  34. Vue.prototype.$style = Style;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top