- extract-text-webpack-plugin
- bundle から テキストを抽出して別ファイルとして書き出す
module.rules
で指定した拡張子のファイルのバンドルに対してExtractTextPlugin.extract()
で抽出する- 書き出すファイルは
plugins
でnew ExtractTextPlugin('styles.css')
のように指定する
- bundle から テキストを抽出して別ファイルとして書き出す
- webpack.DllPlugin
- 開発時のビルド速度を改善するために使う
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- schema/2024-11-05/schema.ts 2025-03-27 02:23:35 | |
+++ schema/2025-03-26/schema.ts 2025-03-27 02:23:53 | |
@@ -1,11 +1,27 @@ | |
/* JSON-RPC types */ | |
+ | |
+/** | |
+ * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent. | |
+ */ | |
export type JSONRPCMessage = | |
| JSONRPCRequest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove greeting message | |
set fish_greeting | |
# show cwd as full path in a prompt | |
set --global --export fish_prompt_pwd_dir_length 0 | |
# enviroment variables | |
# ------------------------------------------------------------------------------ | |
set --global --export LANG 'ja_JP.UTF-8' | |
set --global --export LESSCHARSET utf-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ENV_VAR_1, ENV_VAR_2, ENV_VAR_3 } = process.env; | |
const filterUndefinedVars = (vars: { | |
[variableName: string]: any; | |
}): string[] => { | |
return Object.entries(vars) | |
.filter(([_k, v]) => typeof v === 'undefined') | |
.map(([variableName]) => variableName); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty itself. | |
#env: | |
# TERM variable | |
# | |
# This value is used to set the `$TERM` environment variable for | |
# each instance of Alacritty. If it is not present, alacritty will |
- extract-text-webpack-plugin
- bundle から テキストを抽出して別ファイルとして書き出す
module.rules
で指定した拡張子のファイルのバンドルに対してExtractTextPlugin.extract()
で抽出する- 書き出すファイルは
plugins
でnew ExtractTextPlugin('styles.css')
のように指定する
- bundle から テキストを抽出して別ファイルとして書き出す
- webpack.DllPlugin
- 開発時のビルド速度を改善するために使う
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
echo \nfisher | |
fisher | |
echo \nz --clean | |
z --clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/zeit/next.js/blob/42cff0a09c4ae42016500b1797ae4f0bd8438e88/packages/next-bundle-analyzer/index.js | |
module.exports = ({ enabled = true } = {}) => (nextConfig = {}) => { | |
return Object.assign({}, nextConfig, { | |
webpack (config, options) { | |
if (enabled) { | |
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer') | |
config.plugins.push( | |
new BundleAnalyzerPlugin({ | |
analyzerMode: 'static', | |
reportFilename: options.isServer ? '../analyze/server.html' : './analyze/client.html' |
NewerOlder