mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: better config page layout
This commit is contained in:
27 files changed
+748
-377
No files matched your search
@@ -88,6 +88,14 @@ export default async function (env: { watch?: boolean, production?: boolean, mea
|
||||
};
|
||||
}
|
||||
|
||||
function scssLoader() {
|
||||
return {
|
||||
loader: 'sass-loader',
|
||||
options: {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
const config: import('webpack').Configuration = {
|
||||
// bail: !env.production,
|
||||
mode: (env.production || env.measure) ? 'production' : 'development',
|
||||
@@ -200,6 +208,10 @@ export default async function (env: { watch?: boolean, production?: boolean, mea
|
||||
test: /\.styl$/,
|
||||
use: [extractCssLoader(), cssLoader(), postcssLoader(), stylusLoader()],
|
||||
},
|
||||
{
|
||||
test: /\.scss$/,
|
||||
use: [extractCssLoader(), cssLoader(), postcssLoader(), scssLoader()],
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [extractCssLoader(), cssLoader(), postcssLoader()],
|
||||
|
||||
Reference in new issue
Block a user