@adamtagscherer/webpack-multipage 中文文档教程

发布于 6 年前 浏览 6 项目主页 更新于 2 年前

Webpack Multipage

使用此 webpack 配置捆绑您的多页应用程序资产。

Introduction

此配置适用于构建多页 Web 应用程序前端。 您可以在 /dev/blocks/ 目录下编写带有相关资产的 BEM 块,并将它们包含在 /dev/pages/ 中您需要的任何地方。 与单个块相关的任何内容都应包含在它自己的目录下。

该配置能够:

  • Transpile ES5+ to ES5.
  • Transpile SCSS to CSS.
  • Built in eslint with airbnb-base.

Getting Started

Prerequisites

  • Node.js - Fresh version of Node.js.

Installing

要使用 npm 安装最新版本,请运行以下命令:

npm install @adamtagscherer/webpack-multipage

Run

要在开发模式下启动应用程序,请运行:

npm run start

要在生产环境中运行:

npm run build

Webpack Multipage

Bundle your multipage application assets with this webpack configuration.

Introduction

This configuration is proper for building multipage web application frontend. You can write your BEM blocks with the associated assets under the /dev/blocks/ directory and include them in /dev/pages/ wherever you need them. Anything related to a single block should be included under it's own directory.

The configuration is capable of:

  • Transpile ES5+ to ES5.
  • Transpile SCSS to CSS.
  • Built in eslint with airbnb-base.

Getting Started

Prerequisites

  • Node.js - Fresh version of Node.js.

Installing

To install the latest release version with npm, run the following command:

npm install @adamtagscherer/webpack-multipage

Run

To start the application in development mode, run:

npm run start

To run in production:

npm run build
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文