Git Product home page Git Product logo

webpack-multiple-page-for-fullstack's Introduction

webpack打包前端工程化开发多站点(多入口文件)[利用glob自动加载多页面]

目录结构说明

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

使用

  1. 执行 webpack 打包命令完成项目打包[打包到dist文件夹下]
  2. 执行 node server 启动devServer,打开http://localhost:9090/dist/view/index.html就可以进行正常的页面预览了

webpack-multiple-page-for-fullstack's People

Contributors

fengyun2 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.