{"id":10564,"date":"2020-09-19T03:08:55","date_gmt":"2020-09-18T18:08:55","guid":{"rendered":"http:\/\/leavebehind.iobb.net\/wordpress\/?p=10564"},"modified":"2020-09-19T03:17:05","modified_gmt":"2020-09-18T18:17:05","slug":"clock-on-createjs3","status":"publish","type":"post","link":"http:\/\/leavebehind.mydns.jp\/wordpress\/2020\/09\/19\/clock-on-createjs3\/","title":{"rendered":"\u304a\u6642\u8a083"},"content":{"rendered":"\n<p>\u3069\u3046\u305b\u306a\u3089<a href=\"http:\/\/leavebehind.iobb.net\/wordpress\/2020\/09\/17\/clock-on-createjs2\/\">\u6642\u8a08<\/a>\u3092iPhone\u3067\u3082\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3063\u3066\u4e8b\u3067\u3001javascript\u3092\u3042\u30fc\u3057\u3066\u3053\u30fc\u3057\u3066\u52d5\u304b\u3057\u3066\u307f\u308b\u306e\u5dfb\u3002<\/p>\n\n\n\n<p>\u306a\u3093\u3067iPhone\u306eSafari\u3067\u52d5\u304b\u306a\u3044\u304b\u3063\u3066\u8a00\u3046\u3068\u3001javascript\u306e\u30d0\u30fc\u30b7\u30e7\u30f3es2015\u306f\u5b9f\u884c\u51fa\u6765\u308b\u3082\u306e\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306eimport\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u306a\u306e\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7d50\u5408(\u30d0\u30f3\u30c9\u30eb)\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>es2015\u3092es5\u306b\u30c8\u30e9\u30f3\u30b9\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3001babel\u306e\u304a\u4ed5\u4e8b\u3067\u3059\u3002\u305d\u308c\u304b\u3089webpack\u3092\u4f7f\u3063\u3066\u30d0\u30f3\u30c9\u30eb\u3057\u307e\u3059\u3002\u3093\u3067\u3001<a href=\"http:\/\/leavebehind.iobb.net\/test\/clockjs_bundled\/clock.html\">iPhone\u3067\u3082\u52d5\u304f\u30e4\u30c4<\/a>\u3002<\/p>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u66f8\u304d\u63db\u3048\u3066\u306a\u3044\u306e\u3067\u3001\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc(rollover)\u304c\u52d5\u304d\u307e\u305b\u3093\u3002\u30b9\u30de\u30db\u306b\u30de\u30a6\u30b9\u306f\u3042\u308a\u307e\u305b\u3093\u304b\u3089\u2026\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"979\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-content\/uploads\/2020\/09\/img_8498.jpg\" alt=\"\" class=\"wp-image-10570\" srcset=\"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-content\/uploads\/2020\/09\/img_8498.jpg 1914w, http:\/\/leavebehind.mydns.jp\/wordpress\/wp-content\/uploads\/2020\/09\/img_8498-960x491.jpg 960w, http:\/\/leavebehind.mydns.jp\/wordpress\/wp-content\/uploads\/2020\/09\/img_8498-700x358.jpg 700w, http:\/\/leavebehind.mydns.jp\/wordpress\/wp-content\/uploads\/2020\/09\/img_8498-768x393.jpg 768w, http:\/\/leavebehind.mydns.jp\/wordpress\/wp-content\/uploads\/2020\/09\/img_8498-1536x786.jpg 1536w\" sizes=\"auto, (max-width: 1914px) 100vw, 1914px\" \/><\/figure><\/div>\n\n\n\n<p>\u4ee5\u964d\u306f\u8a2d\u5b9a\u3082\u308d\u3082\u308d\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u30c8\u30e9\u30f3\u30b9\u30d1\u30a4\u30eb\u3068\u30d0\u30f3\u30c9\u30eb\u306b\u5fc5\u8981\u306ababel\u3068webpack\u306e\u6e96\u5099<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&gt; npm i -D @babel\/core @babel\/preset-env @babel\/plugin-proposal-class-properties<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&gt; npm i -D webpack webpack-cli copy-webpack-plugin babel-loader<\/pre>\n\n\n\n<p>webpack.config.js\u306e\u4e2d\u8eab<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">const path = require(\"path\");\nconst CopyWebpackPlugin = require(\"copy-webpack-plugin\");\nlet copyWebpack_client = new CopyWebpackPlugin({\n    patterns: [\n        {\n            from: \".\/**\/*.{html,css}\",\n            to: \".\/\",\n            context: \".\/src\",\n        },\n    ],\n});\nlet babel_transpile = {\n    loader: 'babel-loader',\n    options: {\n        presets: [\n            '@babel\/preset-env',\n        ],\n        plugins:[\n            '@babel\/plugin-proposal-class-properties',\n        ]\n    }\n}\nlet for_client ={\n    target: \"web\",\n    mode: \"production\",\n    entry: {\"main\":\".\/src\/main.js\"},\n    output:{\n        path: path.resolve(__dirname,\"dist\"),\n        filename: \"[name].js\"\n    },\n    module: {\n        rules: [\n            {\n                test: \/\\.js$\/,\n                use: [babel_transpile]\n            }\n        ]\n    },\n    plugins: [copyWebpack_client]\n};\nmodule.exports = () =&gt; {\n    return [for_client]\n}<\/pre>\n\n\n\n<p>\u3053\u306e\u3042\u305f\u308aWebStorm IDE\u304c\u3088\u3057\u306a\u306b\u3084\u3063\u3066\u304f\u308c\u306a\u3044\u3093\u3067\u3057\u3087\u3046\u304b\uff1f\u3053\u3053\u307e\u3067\u3084\u308b\u3068VS code\u3068\u624b\u9593\u306f\u5909\u308f\u3089\u306a\u3044\u6c17\u304c\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u305b\u306a\u3089\u6642\u8a08\u3092iPhone\u3067\u3082\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3063\u3066\u4e8b\u3067\u3001javascript\u3092\u3042\u30fc\u3057\u3066\u3053\u30fc\u3057\u3066\u52d5\u304b\u3057\u3066\u307f\u308b\u306e\u5dfb\u3002 \u306a\u3093\u3067iPhone\u306eSafari\u3067\u52d5\u304b\u306a\u3044\u304b\u3063\u3066\u8a00\u3046\u3068\u3001javascript\u306e\u30d0\u30fc\u30b7\u30e7\u30f3es2015\u306f\u5b9f\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[456],"tags":[461,457,152,460,455],"class_list":["post-10564","post","type-post","status-publish","format-standard","hentry","category-programming","tag-babel-loader","tag-createjs","tag-javascript","tag-webpack","tag-webstorm"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8YSE4-2Ko","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/10564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=10564"}],"version-history":[{"count":9,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/10564\/revisions"}],"predecessor-version":[{"id":10574,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/10564\/revisions\/10574"}],"wp:attachment":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=10564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=10564"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=10564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}