Skip to content

Instantly share code, notes, and snippets.

View MakeHoney's full-sized avatar
:octocat:
code again!

Byunghun Lee MakeHoney

:octocat:
code again!
View GitHub Profile
@MakeHoney
MakeHoney / webpack-hot-module-replacement-code-snippet.js
Last active October 9, 2019 10:45
webpack-hot-module-replacement
// webpack.config.js
module.exports = {
...
plugins: [
...
new webpack.HotModuleReplacementPlugin()
...
],
...
@MakeHoney
MakeHoney / react-hot-loader-code-snippet.js
Last active October 9, 2019 11:59
react-hot-loader code snippet
// package.json
...
"react-hot-loader": "^4.12.15",
"@hot-loader/react-dom": "^16.8.6",
...
// webpack.config.js
module.exports = {
...
resolve: {
@MakeHoney
MakeHoney / daum_postcode.vue
Last active April 17, 2019 09:05
버튼을 누르면 다음 우편번호(주소) API가 팝업되는 컴포넌트
<template>
<div>
<button @click="popButton">주소</button>
</div>
</template>
<script>
export default {
data: _ => ({
daumPostCode: null
@MakeHoney
MakeHoney / cdn_locally_import.vue
Created April 17, 2019 06:48
CDN을 전역이 아닌, 지역적으로 (특정 컴포넌트에서만) 불러오는 코드.
<template>
<div>
<h1> snippet code </h1>
</div>
</template>
<script>
export default {
async mounted() {
await this.loadDaumPostcode()