摘要:
注释: options:{ importLoaders: 2 } 解决样式文件里使用@import 'xxx.xxx' 的问题 module: { rules: [{ test: /\.scss$/, use: [ 'style-loader', { loader: 'css-loader', op 阅读全文
摘要:
npx 指令会先在项目的node_modules里面找资源包 npm info 包名称 [查看资源包的信息] 阅读全文
摘要:
{ "name": "webpack-demo", "version": "1.0.0", "description": "learning webpack", "private": true, > 表示项目是私有的,不会发布到npm的线上仓库 "main": "index.js", > 向外暴露的 阅读全文
摘要:
.ellipsis{ overflow: hidden white-space: nowrap text-overflow: ellipsis } 注意当添加了ellipsis样式的元素没有显示省略号样式时,可以给元素或者其父元素添加一个min-width: 0 阅读全文
摘要:
在.eslintrc.js中配置: // add your custom rules here rules: { // no space before function name "space-before-function-paren": 0 } 阅读全文