vue babel 7

https://github.com/storybookjs/storybook/issues/5298 https://github.com/webpack/webpack/issues/4039 https://github.com/gmfe/Think/issues/67 Cannot assign to read only property ’exports’ of object ‘#’ babel.config.js 'sourceType': 'unambiguous', // 自动推断编译的模块类型(cjs,es6) 'ignore': [/@babel[/\\]runtime/], // 忽略 @babel/runtime Full code module.exports = { 'sourceType': 'unambiguous', // 自动推断编译的模块类型(cjs,es6) 'ignore': [/@babel[/\\]runtime/], // 忽略 @babel/runtime presets: [ '@vue/app' ] }

2019-08-02 · 1 min · 42 words · Me

vue 3 vue-cli-service serve vue.config.js package.json docker

“serve”: “vue-cli-service serve”, Some page modify vue-cli-service serve –host 0.0.0.0 –port 8978 This may in docker failed. Error: listen EADDRNOTAVAIL: address not available So some page modify vue.config.js Use public is Failed!! devServer: { public: '0.0.0.0:80', disableHostCheck: true, } Use host port is Correct!! module.exports = { chainWebpack: config => { config.module.rules.delete('eslint'); }, devServer: { host: '0.0.0.0', port: '80', //public: '0.0.0.0:80', //無效 disableHostCheck: true, } } PS: .Put eslint is maybe get some eslint error, not about host ip port. .disableHostCheck can remove for try by yourself env. ...

2019-08-02 · 1 min · 88 words · Me

vue

[Vue.js] 簡單登入頁面路由part1 https://yuugou727.github.io/blog/2017/11/11/vue-login-practice/ [Vue.js] 簡單登入頁面路由part2 https://yuugou727.github.io/blog/2017/11/14/vue-login-practice-2/ [Vue.js] global method 的復用 https://yuugou727.github.io/blog/2017/11/25/vue-global-methods/

2018-10-18 · 1 min · 11 words · Me

vue 模塊 2

https://zhuanlan.zhihu.com/p/22945985 ECMAScript目前包含一个名为ECMAScript 6 module loader API 的解决方案。简单来讲,这个解决方案允许你动态加载模块并缓存。 https://link.zhihu.com/?target=https%3A//github.com/ModuleLoader/es6-module-loader

2018-10-18 · 1 min · 8 words · Me

vue 模塊

https://zhuanlan.zhihu.com/p/22890374 原生JS

2018-10-18 · 1 min · 2 words · Me