2 |
3 | {{ $scss && $scss.variable }}
4 | {{ scss && scss.js }}
5 |
6 |
7 |
8 |
17 |
--------------------------------------------------------------------------------
/example/nuxt.config.js:
--------------------------------------------------------------------------------
1 | const { resolve } = require('path')
2 |
3 | module.exports = {
4 | rootDir: resolve(__dirname, '..'),
5 | buildDir: resolve(__dirname, '.nuxt'),
6 | srcDir: __dirname,
7 | modules: [
8 | { handler: require('../') }
9 | ],
10 | nuxtScssToJs: {
11 | generate: true
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | parserOptions: {
4 | parser: 'babel-eslint',
5 | sourceType: 'module'
6 | },
7 | extends: [
8 | '@nuxtjs'
9 | ],
10 | rules: {
11 | 'semi': 'off',
12 | 'no-var': 'off',
13 | 'comma-spacing': 'off',
14 | 'require-await': 'off',
15 | 'dot-notation': 'off',
16 | 'camelcase': 'off',
17 | 'no-useless-escape': 'off'
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | testEnvironment: 'node',
3 | collectCoverage: true,
4 | collectCoverageFrom: [
5 | 'lib/**/*.js',
6 | '!lib/plugin.js',
7 | '!lib/scss.js'
8 | ],
9 | moduleNameMapper: {
10 | '^~/(.*)$': '