-
-
I'm getting this error with `webpack@2.2.1`:
```
webpack
/home/pcfl/.nvm/versions/node/v6.2.1/lib/node_modules/webpack/bin/webpack.js:315
throw e;
^
…
-
In my Webpack config
`
{
test: /\.css$/,
use: ['to-string-loader', 'css-loader']
},
`
```
ERROR in ../~/css-loader!../~/raw-loader!./src/app/app.component.css
Module build failed: CssSy…
-
When I try to test JS nothing has **happened** 😕
Please to **double-check** ✔️ your code before share it 🗡️ ❤️
-
使用 webpack cli 分析耗时
```
webpack --config webpack.config.dev.js -w --profile --progress
```
使用可视化工具分析包体积
* webpack --json > __stats.json
* https://chrisbateman.github.io/webpack-visualizer/
* …
-
# webpack的使用
## webpack的一些坑的解决
### 1. babel-loader更新到最新的版本不可用
``npm uninstall webpack --save-dev``
``npm install webpack@2.1.0-beta.22 --save-dev``
这里注意这个webpack 2.x beta.22又是一个大坑,要更新到25,所以…
-
npm install
nom start
ERROR in ./~/css-loader!./~/postcss-loader!./~/stylus-loader?paths=node_modules!./stylus/index.styl
Module build failed: Error: reWeather/stylus/index.styl:69:9
65| $mat…
-
Would you consider using ES6 modules?
Related three.js just moved to ES6 modules https://github.com/mrdoob/three.js/pull/9310
-
I use core-decorators in create-react-app project, and use function in this way:
```
import {autobind} from 'core-decorators';
```
But the bundle size doesn't reduce.
When I change in this wa…
-
The library is pretty good, but the issue is that it takes a long time to build. For reference, in my project, webpack generally builds in less than 500ms. With this library, it takes over 15000ms