Add common pre-processors in nuxt

This commit is contained in:
Sébastien Chopin 2017-03-25 03:38:19 +01:00
parent 7a34763277
commit 89ed672f10

View File

@ -70,10 +70,11 @@ export default function ({ isClient, isServer }) {
cacheDirectory: !!this.dev cacheDirectory: !!this.dev
}) })
}, },
{ { test: /\.css$/, loader: 'vue-style-loader!css-loader' },
test: /\.css$/, { test: /\.less$/, loader: 'vue-style-loader!css-loader!less-loader' },
loader: 'vue-style-loader!css-loader' { test: /\.sass$/, loader: 'vue-style-loader!css-loader!sass-loader?indentedSyntax' },
} { test: /\.scss$/, loader: 'vue-style-loader!css-loader!sass-loader' },
{ test: /\.styl(us)?$/, loader: 'vue-style-loader!css-loader!stylus-loader' }
] ]
}, },
plugins: this.options.build.plugins plugins: this.options.build.plugins