nav tabs on admin dashboard
This commit is contained in:
+25
-3
@@ -1,19 +1,40 @@
|
||||
let Preprocessor = require('./Preprocessor');
|
||||
|
||||
class Sass extends Preprocessor {
|
||||
/**
|
||||
* Required dependencies for the component.
|
||||
*/
|
||||
dependencies() {
|
||||
this.requiresReload = true;
|
||||
|
||||
return tap(
|
||||
[
|
||||
'sass-loader@7.*',
|
||||
Mix.seesNpmPackage('node-sass') ? 'node-sass' : 'sass'
|
||||
],
|
||||
dependencies => {
|
||||
if (Config.processCssUrls) {
|
||||
dependencies.push('resolve-url-loader@2.3.1');
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the component.
|
||||
*
|
||||
* @param {*} src
|
||||
* @param {string} output
|
||||
* @param {Object} pluginOptions
|
||||
* @param {Array} postCssPlugins
|
||||
*/
|
||||
register(src, output, pluginOptions = {}) {
|
||||
register(src, output, pluginOptions = {}, postCssPlugins = []) {
|
||||
return this.preprocess(
|
||||
'sass',
|
||||
src,
|
||||
output,
|
||||
this.pluginOptions(pluginOptions)
|
||||
this.pluginOptions(pluginOptions),
|
||||
postCssPlugins
|
||||
);
|
||||
}
|
||||
|
||||
@@ -27,7 +48,8 @@ class Sass extends Preprocessor {
|
||||
return Object.assign(
|
||||
{
|
||||
precision: 8,
|
||||
outputStyle: 'expanded'
|
||||
outputStyle: 'expanded',
|
||||
implementation: () => require('sass')
|
||||
},
|
||||
pluginOptions,
|
||||
{ sourceMap: true }
|
||||
|
||||
Reference in New Issue
Block a user