어떤 이유로 리졸 브 플러그인이 확장되지 않은 것처럼 보입니다. 따라서 TsconfigPathsPlugin을 사용하여 TS 경로의 별칭을 가져 오는 경우 스토리 북 웹팩 구성 파일에서 별칭을 다시 정의해야합니다.
config.resolve.plugins = [
new TsconfigPathsPlugin({
configFile: path.resolve(__dirname, "../tsconfig.json")
})
];
<table style="width: 100%"> | |
<colgroup> | |
<col span="1" style="width: 15%;"> | |
<col span="1" style="width: 70%;"> | |
<col span="1" style="width: 15%;"> | |
</colgroup> | |
<!-- Put <thead>, <tbody>, and <tr>'s here! --> | |
<tbody> | |
<tr> | |
<td style="background-color: #777">15%</td> |
<?php | |
$cb = function ($fn) { | |
return $fn; | |
}; | |
echo <<<HEREDOC | |
Hello, {$cb(ucfirst('world'))} | |
HEREDOC; |
<?php | |
/** | |
* 현재 페이지에서 네비게이션 부모 쿼리 가져오기 함수 | |
* | |
* @author Hansanghyeon | |
* @copyright Hansanghyeon <[email protected]> | |
**/ | |
function my_menu_parent($theme_location) |
<?php | |
$postType = get_post_type(); | |
if (!empty($postType)) { | |
add_action('pre_get_posts', function ($query) { | |
if ( | |
!is_admin() | |
&& $query->is_post_type_archive(get_post_type()) | |
&& $query->is_main_query() | |
) { |
어떤 이유로 리졸 브 플러그인이 확장되지 않은 것처럼 보입니다. 따라서 TsconfigPathsPlugin을 사용하여 TS 경로의 별칭을 가져 오는 경우 스토리 북 웹팩 구성 파일에서 별칭을 다시 정의해야합니다.
config.resolve.plugins = [
new TsconfigPathsPlugin({
configFile: path.resolve(__dirname, "../tsconfig.json")
})
];
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); | |
module.exports = { | |
plugins: [ | |
... | |
{ | |
plugin: { | |
overrideWebpackConfig: ({ webpackConfig }) => { | |
webpackConfig.resolve.plugins.push(new TsconfigPathsPlugin({})); | |
return webpackConfig; |
<?php | |
// add hook | |
add_filter( 'wp_nav_menu_objects', 'my_wp_nav_menu_objects_sub_menu', 10, 2 ); | |
// filter_hook function to react on sub_menu flag | |
function my_wp_nav_menu_objects_sub_menu( $sorted_menu_items, $args ) { | |
if ( isset( $args->sub_menu ) ) { | |
$root_id = 0; | |
// find the current menu item |
<?php | |
/** | |
* Kill Themes | |
* | |
* @author Hansanghyeon | |
* @copyright Hansanghyeon <[email protected]> | |
**/ | |
function kill_theme_wpse_188906($themes) |
button::after { | |
content: ""; | |
position: absolute; | |
opacity: 1; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
right: 0; | |
transition: inherit; | |
background-position: center; |
label.iosCheckbox { | |
display: inline-block; | |
background: #fff; | |
padding: 10px 15px; | |
> input { | |
display: none; | |
} | |
i { |