mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
bcfac603f0
* added storybook * added avatar component * added button story * added dropdown button story * removed unused ellipsis component * cleaned up modal path * reorganized enroll secrets table file * added flash story; removed unused persistent flash * added fleet ace story * added checkbox story * added dropdown story * added input story * fixed storybook build * fixed avatar * added input with icon story * added radio button story * added select targets dropdown story * added slider story * added tooltip story * added info banner story * removed unused loaders; added spinner story * added modal story * removed unused NumberPill * added pagination story * lint fixes * added documentation to run * modified documentation * fixed corelayout test * fixed format for date-fns * fixed date format that breaks tests * wait for page
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
const path = require("path");
|
|
const bourbon = require("node-bourbon").includePaths;
|
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
|
|
module.exports = {
|
|
webpackFinal: async (config) => {
|
|
config.module.rules.push({
|
|
test: /\.scss$/,
|
|
use: [
|
|
{
|
|
loader: MiniCssExtractPlugin.loader,
|
|
options: {
|
|
publicPath: "./",
|
|
hmr: process.env.NODE_ENV === "development",
|
|
},
|
|
},
|
|
{ loader: "css-loader" },
|
|
{ loader: "postcss-loader" },
|
|
{
|
|
loader: "sass-loader",
|
|
options: {
|
|
sourceMap: true,
|
|
includePaths: [bourbon],
|
|
},
|
|
},
|
|
{ loader: "import-glob-loader" },
|
|
],
|
|
});
|
|
|
|
config.plugins.push(new MiniCssExtractPlugin({ filename: '[name].css' }))
|
|
config.resolve.modules.push(path.resolve(__dirname, '../frontend'));
|
|
|
|
return config;
|
|
},
|
|
"stories": [
|
|
"../frontend/components/**/*.stories.mdx",
|
|
"../frontend/components/**/*.stories.@(js|jsx|ts|tsx)"
|
|
],
|
|
"addons": [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials"
|
|
]
|
|
} |