Results 9 comments of Harhao

主要是学习这个思想,感觉这个实战也没有比较大的难度

@NengQuan 入门课程,很多都没有讲

```js function translateEntery(entry) { const returnValue = {} if(typeof entry == 'object') { Object.keys(entry).forEach(key => { if(key.includes('.')) { const arr = key.split('.') generate(returnValue, arr, entry[key]) } }) } function generate(returnValue,...

@perfect-network 来到这里,都是想看看怎么学的吧

给上面demo一个格式化的代码: ```bash const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); module.exports = { mode: 'development', entry: './main.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, './dist'), }, module: { rules: [{ test:...

@guoshuai93 在新版webpack中,直接通过querystring添加minimize属性会直接报错,在options中添加`minimize`也会报错 ```bash ValidationError: CSS Loader Invalid Options ,options should NOT have additional properties ```

1. 只是拿了猫眼电影web的接口数据,没有上线。 - ![猫眼电影运行效果](https://github.com/Harhao/miniProgram/blob/master/demo1.gif?raw=true) 2. 附上git地址二维码[https://github.com/Harhao/miniProgram](https://github.com/Harhao/miniProgram),有点献丑的感觉(多多指教) ![https://github.com/Harhao/miniProgram](https://user-images.githubusercontent.com/15929863/43410114-6ba5ae00-9458-11e8-8f2a-e2ab9d8c4141.png)

> 可以用css atrribute+css变量来做,类似这样: `body {--primary-color: white}` `body[theme="dark"] {--primary-color: black}` `.button: {background: var(--primary-color)}` 给body加theme="dark"就ok了 这个在低版本一点android的webview就存在很大问题了,不支持attribute的属性,直接挂球

这个感觉可以从搜狗搜索相应的公众号,分析该网页下的js文件可以获取到生成的规则