Coder Social home page Coder Social logo

pc-webpack-ejs's Introduction

#webpack 简单多页应用demo

###技术栈

webpack+gulp+es6+sass

###项目结构

  • website
    • src #代码开发目录
      • sass #sass目录,按照页面(模块)、通用、第三方三个级别进行组织
        • page
        • common
        • lib
      • images #图片资源
      • js #JS脚本,按照page、components进行组织
        • page
        • components
      • html_tpl #HTML模板
      • html #HTML模板编译输出目录
    • dist #webpack编译打包输出目录,无需建立目录可由webpack根据配置自动生成
      • css
      • js
      • html
    • node_modules #所使用的nodejs模块
    • package.json #项目配置
    • gulpfile.js #gulp配置
    • webpack.config.babel.js #webpack配置(es6)
    • README.md #项目说明

###项目运行

运行之前请先安装node

安装项目依赖包

npm install

编译项目

webpack

启动本地测试环境

npm run start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.