nav tabs on admin dashboard
This commit is contained in:
91
node_modules/laravel-mix/src/components/Css.js
generated
vendored
91
node_modules/laravel-mix/src/components/Css.js
generated
vendored
@@ -8,19 +8,83 @@ class Css extends AutomaticComponent {
|
||||
return [
|
||||
{
|
||||
test: /\.css$/,
|
||||
loaders: ['style-loader', 'css-loader']
|
||||
loaders: [
|
||||
'style-loader',
|
||||
{ loader: 'css-loader', options: { importLoaders: 1 } },
|
||||
{
|
||||
loader: 'postcss-loader',
|
||||
options: this.postCssOptions()
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
test: /\.s[ac]ss$/,
|
||||
test: /\.scss$/,
|
||||
exclude: this.excludePathsFor('sass'),
|
||||
loaders: ['style-loader', 'css-loader', 'sass-loader']
|
||||
loaders: [
|
||||
'style-loader',
|
||||
'css-loader',
|
||||
{
|
||||
loader: 'postcss-loader',
|
||||
options: this.postCssOptions()
|
||||
},
|
||||
{
|
||||
loader: 'sass-loader',
|
||||
options: {
|
||||
precision: 8,
|
||||
outputStyle: 'expanded'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
test: /\.sass$/,
|
||||
exclude: this.excludePathsFor('sass'),
|
||||
loaders: [
|
||||
'style-loader',
|
||||
'css-loader',
|
||||
{
|
||||
loader: 'postcss-loader',
|
||||
options: this.postCssOptions()
|
||||
},
|
||||
{
|
||||
loader: 'sass-loader',
|
||||
options: {
|
||||
precision: 8,
|
||||
outputStyle: 'expanded',
|
||||
indentedSyntax: true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
test: /\.less$/,
|
||||
exclude: this.excludePathsFor('less'),
|
||||
loaders: ['style-loader', 'css-loader', 'less-loader']
|
||||
loaders: [
|
||||
'style-loader',
|
||||
'css-loader',
|
||||
{
|
||||
loader: 'postcss-loader',
|
||||
options: this.postCssOptions()
|
||||
},
|
||||
'less-loader'
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
test: /\.styl(us)?$/,
|
||||
exclude: this.excludePathsFor('stylus'),
|
||||
loaders: [
|
||||
'style-loader',
|
||||
'css-loader',
|
||||
{
|
||||
loader: 'postcss-loader',
|
||||
options: this.postCssOptions()
|
||||
},
|
||||
'stylus-loader'
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -37,6 +101,25 @@ class Css extends AutomaticComponent {
|
||||
? exclusions.details.map(preprocessor => preprocessor.src.path())
|
||||
: [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the appropriate postcss plugins for the compile.
|
||||
*/
|
||||
postCssOptions() {
|
||||
if (Mix.components.get('postCss')) {
|
||||
return {
|
||||
plugins: Mix.components.get('postCss').details[0].postCssPlugins
|
||||
};
|
||||
}
|
||||
|
||||
// If the user has a postcss.config.js file in their project root,
|
||||
// postcss-loader will automatically read and fetch the plugins.
|
||||
if (File.exists(Mix.paths.root('postcss.config.js'))) {
|
||||
return {};
|
||||
}
|
||||
|
||||
return { plugins: Config.postCss };
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Css;
|
||||
|
||||
Reference in New Issue
Block a user