<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Webpack on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/webpack/</link><description>Recent content in Webpack on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Mon, 10 Sep 2018 00:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/webpack/atom.xml" rel="self" type="application/rss+xml"/><item><title>Some Installation Problems with Node.js</title><link>https://www.chenshaowen.com/en/blog/some-installation-problems-about-nodejs.html</link><pubDate>Mon, 10 Sep 2018 00:00:00 +0000</pubDate><atom:modified>Mon, 10 Sep 2018 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/some-installation-problems-about-nodejs.html</guid><description>1. Installing node-sass When installing node-sass, the node scripts/install stage downloads a .node file from github.com, and network problems often cause this to fail.
You can add an .npmrc file inside the project to configure a proxy for the installation:
1 2 sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ registry=https://registry.npm.taobao.org Or install with cnpm:
1 2 npm install -g cnpm --registry=https://registry.</description><dc:creator>WeChat Official Account</dc:creator><category>Frontend</category><category>Webpack</category><category>Nodejs</category><category>R&amp;D</category><category>Environment</category></item><item><title>Vue + Webpack Development</title><link>https://www.chenshaowen.com/en/blog/101-of-vue-and-webpack-project.html</link><pubDate>Wed, 12 Jul 2017 17:26:29 +0000</pubDate><atom:modified>Wed, 12 Jul 2017 17:26:29 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/101-of-vue-and-webpack-project.html</guid><description>1, Initializing the Project vue-cli is the official project scaffold released by Vue; using vue-cli, you can quickly create a Vue + Webpack project.
1 2 3 4 5 6 7 8 9 10 npm install -g vue-cli # Install vue-cli globally vue init webpack myproject # Create a vue project; when it runs, it prompts for information about the project cd myproject # Enter the project npm install # Install the dependency packages; a new node_modules folder is created and the packages are installed there npm run dev # Run locally, by default at http://localhost:8080, starting the service 2, Directory Structure 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |--build //folder for webpack-related code | |--build.</description><dc:creator>WeChat Official Account</dc:creator><category>Frontend</category><category>Tools</category><category>Vue</category><category>Webpack</category><category>R&amp;D</category></item></channel></rss>