json Parcel Bundler Starter

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json Parcel Bundler Starter相关的知识,希望对你有一定的参考价值。

yarn add -D babel-plugin-transform-object-rest-spread babel-plugin-transform-class-properties babel-preset-env babel-preset-react parcel-bundler

yarn add babel-polyfill
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Parcel Bundler</title>
</head>

<body>
    <h3>Parcel Bundler</h3>
    <script src="./index.js"></script>
</body>

</html>
{
  "name": "parcel",
  "version": "0.0.1",
  "description": "",
  "main": "src/index.js",
  "scripts": {
    "dev": "parcel src/index.html"
  },
  "keywords": [],
  "author": "Nelson Reina <nelreina@gmail.com>",
  "license": "ISC",
  "devDependencies": {
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "parcel-bundler": "^1.2.0",
    "react-hot-loader": "^3.1.3"
  },
  "dependencies": {
    "react": "^16.2.0",
    "react-dom": "^16.2.0"
  }
}
{
  "presets": ["react"],
  "plugins": ["react-hot-loader/babel", "transform-class-properties", "transform-object-rest-spread"]
}

以上是关于json Parcel Bundler Starter的主要内容,如果未能解决你的问题,请参考以下文章

Parcel Bundler 和 React 服务器端渲染

使用终端安装 Parcel Bundler 时如何修复权限错误

Parcel Bundler - 处理 scss 而不解析我的 sass 中的任何 url

Parcel Bundler:从 node_modules 导入 scss 文件而不指定完整路径?

Parcel 打包器简单使用记录

如何修复在 Parcel.js 中运行的服务器上的“未找到条目”