- extract-text-webpack-plugin
- bundle から テキストを抽出して別ファイルとして書き出す
module.rules
で指定した拡張子のファイルのバンドルに対してExtractTextPlugin.extract()
で抽出する- 書き出すファイルは
plugins
でnew ExtractTextPlugin('styles.css')
のように指定する
- bundle から テキストを抽出して別ファイルとして書き出す
- webpack.DllPlugin
- 開発時のビルド速度を改善するために使う
This file contains 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 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 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 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 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' |
I hereby claim:
- I am qrg on github.
- I am qurage (https://keybase.io/qurage) on keybase.
- I have a public key ASDCatDJQ8N2siCV85GREHFyksQFy4lzb0LztVVh1eQw8wo
To claim this, I am signing this object:
NewerOlder