Webpack

Uncaught Error:expected a string. You forgot export your component from the file its defined,or you might have mixed up default/named import

只愿长相守 提交于 2021-01-22 08:54:50
问题 Could you please help me to resolve the issue. I have already tried resolving the import functions but i still get that error and I have also tried to remove "{}" which didnt work. Thanks in advance. I am following TylerMcginnis React-Redux course. Navigation.js import React from 'react' import PropTypes from 'prop-types' import Link from 'react-router-dom' import { container, navContainer, link } from './styles.css' Navigation.propTypes = ActionLinks.propTypes = NavLinks.propTypes = {

Uncaught Error:expected a string. You forgot export your component from the file its defined,or you might have mixed up default/named import

狂风中的少年 提交于 2021-01-22 08:53:20
问题 Could you please help me to resolve the issue. I have already tried resolving the import functions but i still get that error and I have also tried to remove "{}" which didnt work. Thanks in advance. I am following TylerMcginnis React-Redux course. Navigation.js import React from 'react' import PropTypes from 'prop-types' import Link from 'react-router-dom' import { container, navContainer, link } from './styles.css' Navigation.propTypes = ActionLinks.propTypes = NavLinks.propTypes = {

How to setup Tailwind for a new Angular project?

浪尽此生 提交于 2021-01-22 07:42:03
问题 I want to create a new Angular project using Tailwind CSS. My current CLI version is 10.1.1. Things I have done so far: Create a new app using ng new my-app Use Angular routing => yes Use SCSS as the stylesheet In the root directory of the project run npm i tailwindcss postcss-import postcss-loader postcss-scss @angular-builders/custom-webpack -D In the src folder there is a styles.scss file, modify it to . @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss

How to setup Tailwind for a new Angular project?

守給你的承諾、 提交于 2021-01-22 07:41:27
问题 I want to create a new Angular project using Tailwind CSS. My current CLI version is 10.1.1. Things I have done so far: Create a new app using ng new my-app Use Angular routing => yes Use SCSS as the stylesheet In the root directory of the project run npm i tailwindcss postcss-import postcss-loader postcss-scss @angular-builders/custom-webpack -D In the src folder there is a styles.scss file, modify it to . @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss

How to access a function in a Webpack bundle from a HTML script

不问归期 提交于 2021-01-22 06:32:14
问题 The problem is that I would like to make a timeout function on my page. I have a silverlight app and a new react app in the page. This 2 "apps" need to have a common timer variable that I can in React read and display a <Div> if time is more then 10min. The SilverLight app can call a JS function on every click. This works, but I'm not able to call a function inside the webpack bundled file?? Is it not possible to reach functions from a js function in a <script> from html side?? Do I have to

How to access a function in a Webpack bundle from a HTML script

☆樱花仙子☆ 提交于 2021-01-22 06:29:52
问题 The problem is that I would like to make a timeout function on my page. I have a silverlight app and a new react app in the page. This 2 "apps" need to have a common timer variable that I can in React read and display a <Div> if time is more then 10min. The SilverLight app can call a JS function on every click. This works, but I'm not able to call a function inside the webpack bundled file?? Is it not possible to reach functions from a js function in a <script> from html side?? Do I have to

How to access a function in a Webpack bundle from a HTML script

依然范特西╮ 提交于 2021-01-22 06:29:46
问题 The problem is that I would like to make a timeout function on my page. I have a silverlight app and a new react app in the page. This 2 "apps" need to have a common timer variable that I can in React read and display a <Div> if time is more then 10min. The SilverLight app can call a JS function on every click. This works, but I'm not able to call a function inside the webpack bundled file?? Is it not possible to reach functions from a js function in a <script> from html side?? Do I have to

vue项目首页优化记录

笑着哭i 提交于 2021-01-21 22:23:46
####1.起因   项目打包的时候发现部分文件过大:vender.js有400K,app.css高达1.6M。看着这个数值,瞬间凌乱。 ####2.优化   2.1 优化vender.js     是因项目的依赖 vue、vue-router、vuex、axios 造成的,可使用cdn,注意更换对应版本号 <script src="//cdn.bootcss.com/vue/2.5.2/vue.min.js"></script> <script src="//cdn.bootcss.com/vue-router/3.0.1/vue-router.min.js"></script> <script src="//cdn.bootcss.com/vuex/3.0.1/vuex.min.js"></script>     在 build/webpack.base.conf.js 中添加如下代码,使其不打包进文件 module.exports = { //... externals: { 'vue': 'Vue', 'vue-router': 'VueRouter', 'vuex':'Vuex' }, //... }     去掉相关引用代码 // import Vue from 'vue' // import Router from 'vue-router' // import

webpack5配置oneOf

∥☆過路亽.° 提交于 2021-01-21 17:40:40
官网上写的很清楚了 就是说如果匹配到的这个文件有 多个loader可用 使用了oneOf后只会命中第一个loader 就结束了 不会再向下继续执行loader 就是图中的url-loader会被命中 file-loader永远不会被命中 这样只命中一个loader就可以减少loader的遍历 从而提升性能 来源: oschina 链接: https://my.oschina.net/u/4125329/blog/4918427

web全栈架构师

前提是你 提交于 2021-01-21 12:46:54
01 vue核心与组件化实践.mp4 02 vue全家桶.mp4 03 vue源码实战.mp4 04 vue电商项目实战1.mp4 05 vue电商项目实战2.mp4 06 服务端渲染SSR.mp4 07 vue自动化测试.mp4 08 vue项目最佳实践上.mp4 09 vue项目最佳实践下.mp4 10 补充内容 vue ssr实战.mp4 11 虚拟dom.mp4 12 虚拟dom.mp4 13 虚拟domdif.mp4 14 虚拟dom.mp4 15 虚拟dom应用.mp4 16 vud中虚拟dom如何创建的.mp4 17 vue中虚拟dom优化.mp4 18 react入门.mp4 19 react组件化01.mp4 20 react组件化02.mp4 21 react全家桶及原理.mp4 22 react全家桶2.mp4 23 react电商项目实战.mp4 25 测试题.mp4 26 node基础.mp4 27 koa源码分析.mp4 28 网络编程.mp4 29 持久化-mysql.mp4 30 持久化-mongodb.mp4 31 koa实战鉴权.mp4 32 基于koa定制自己的企业级MVC框架.mp4 33 egg实战.mp4 34 ts项目架构.mp4 35 部署.mp4 36 微信公众号开发.mp4 37 公众号 网页端.mp4 38 网络安全