mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
fix salad config
This commit is contained in:
13
FAQ.md
13
FAQ.md
@@ -46,19 +46,6 @@
|
||||
请参考我们提供的 [starter kit](https://github.com/ElementUI/element-starter),在 webpack 的 loaders 中正确配置 file-loader、css-loader 和 style-loader。此外,我们还提供了基于 [cooking](https://github.com/ElementUI/element-cooking-starter) 和 [laravel](https://github.com/ElementUI/element-in-laravel-starter) 的项目模板。
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>在项目中引入 Element,报 `Uncaught Error: Module build failed: SyntaxError: 'with' in strict mode` 是什么原因?</summary>
|
||||
|
||||
请避免你使用的编译器处理 Element。比如,若是使用 webpack,请在 loaders 中配置:
|
||||
```javascript
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel',
|
||||
exclude: /node_modules/
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>将 Element 克隆至本地,运行时为何会报错/跑不起来?</summary>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user