0.1.2 • Published 3 years ago

sogaws-test v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

我只是一个测试文本 安装步骤: npm installl

安装进度过慢可以指定淘宝镜像 npm --registry https://registry.npm.taobao.org install

报错:node-pre-gyp WARN Using request for node-pre-gyp https download 解决:npm install canvas --canvas_binary_host_mirror=https://npm.taobao.org/mirrors/node-canvas-prebuilt/

报错: module build failed: Error: ENOENT: no such file or directory, scandir '..\node-sass\vendor' 解决:npm rebuild node-sass

启动 npm run dev

打包 npm run release

使用extract-text-webpack-plugin插件,该插件的主要是为了抽离css样式,防止将样式打包在js中引起页面样式加载错乱的现象。 Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead 原因: extract-text-webpack-plugin还不能支持webpack4.0.0以上的版本。 解决办法: npm install –save -dev extract-text-webpack-plugin@next 会下载到+ extract-text-webpack-plugin@4.0.0-beta.0