mina-webpack icon indicating copy to clipboard operation
mina-webpack copied to clipboard

:bento: Mina single-file-component meets Webpack

Results 12 mina-webpack issues
Sort by recently updated
recently updated
newest added

微信小程序中有个组件 `keyboard-accessory` 必须要在 `input/textarea` 标签闭合的情况下使用。参考[官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html) 但是在 mina 中写 `` ,在 `npm run start` 的时候是一切正常,但是在 `npm run build` 就会报错 和这个 https://github.com/tinajs/mina-webpack/issues/70 情况基本一致

package.json ``` "@tinajs/mina-entry-webpack-plugin": "1.6.0", "@tinajs/mina-loader": "1.10.0", "@tinajs/mina-runtime-webpack-plugin": "1.3.7", "@tinajs/wxml-loader": "0.3.1-fork.0", "@tinajs/wxs-loader": "1.2.12", // ..... ``` ![](https://gitee.com/yejinzhan/images/raw/master/20210218224923.png) 警告信息 ``` ./_/_node_modules_/@vant/weapp/lib/picker/index.wxml ./_/_node_modules_/@vant/weapp/lib/picker/index.wxml:include:-1:-1: Included path `../../../../../src/wxml/toolbar.31f03c.wxml` not found from `./_/_node_modules_/@vant/weapp/lib/picker/index.wxml`. ``` 原因:template 相对路径处理错误...

在 npm 不支持 workspace 之前 ,yarn 可能是必要的选择,当前 fork 这个项目使用 npm 安装太久了(几十分钟没装好),而 yarn 安装只要不到一分钟,并且它们的磁盘占用空间差别巨大: ```console ➜ wxa du -hs mina-webpack-npm 885M mina-webpack-npm ➜ wxa du -hs mina-webpack-yarn 278M mina-webpack-yarn ``` yarn...

mina-loader的lang属性会完全覆盖对应tag下的loader配置,这会让明显的配置显得过于冗长,例如我想加入less-loader给`lang=less`,不得不这样写: ```js { loaders: { script: 'babel-loader', style: { loader: 'postcss-loader', options: { config: { path: resolve('./postcss.config.js') } } } }, languages: { scss: [ { loader: 'postcss-loader', options: {...

1. move source file to be combined by TS using `allowJS` flag 2. convert files one by one into TS files on demand if needed

在 `production` 下,标签内值为空格会被移除,如: ```html ``` 会编译为 ```html ``` 请问该如何禁止这一功能?

我在src目录下引入了minui, minui组件都是原生写法。 ![image](https://user-images.githubusercontent.com/27405333/56102908-930c4780-5f62-11e9-9975-575bf149613b.png) 里面的wxc-input组件是这样的 ![image](https://user-images.githubusercontent.com/27405333/56102871-63f5d600-5f62-11e9-9f9f-1142298bad56.png) 但是经过run build之后input标签的结束标签不见了 ![image](https://user-images.githubusercontent.com/27405333/56102950-bfc05f00-5f62-11e9-9cde-41874ad11f87.png) 小程序运行时报错没有input的结束标签 ![image](https://user-images.githubusercontent.com/27405333/56102965-d8307980-5f62-11e9-81df-bc20795a5eb4.png) 请问如何解决

for example one can use json-schema to validate the actual content. some of the navigation bar color config properly can only be `white|black` while others can only be in the...

前些日子我在使用mina-loader的时候,发现lang是通过一个languages的属性定义的,与我之前的方式不太一样,所以没有清除它的用法。我就写了这么一个配置: ```js const minaLoaderOptions = { loaders: { script: 'babel-loader', style: 'postcss-loadder' }, languages: { scss: 'sass-loader' } } ``` 我希望当没有给lang属性的时候,走的是`postcss-loader`;当给定`lang=scss`的时候,走的是`["postcss-loader", "sass-loader"]`. 结果如上配置的效果是,当给定`lang=scss`,只走了`sass-loader`。说实话,这个问题我还调试了半天,最后自己写了个loader才发现它根本没有走`postcss-loader`. 原来lang的配置是覆盖式的,而不是我以为的后置式。这点文档到没说清楚,我却先入为主地想当然了。 我的建议是,给定下面四种lang属性的配置: ```js { "languages": { "scss:before":...

Bumps [json5](https://github.com/json5/json5) from 0.5.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies