Coder Social home page Coder Social logo

mobile-template's Introduction

mobile template

rational

有时并不想或者不需要使用框架, 而只是简单的使用 HTML, css, js 来编写. 但是又想使用 css preprocessor, 更 modern 的 js, HTML proprocessor(HTML is too verbose), 那么可以使用这个使用 webpack 来进行工程化的 template project.

contents

html

使用 pug 作为 html 预编译器, 语法更简洁, 支持block, include, extend 等高级特性

css

使用 sass, postcss, tailwindcss.

!!!note: purgecss

在 webpack 的配置中, 使用了purgecss, 由于默认的 extractor 不处理 @, :,/ 等特殊字符, 所以在使用tailwindcss时可能会漏掉某些样式.

See: purgecss extractors

js

使用babel-loader, 可以使用 es 的新特性,以及使用 node modules.

TODO

考虑添加 ts 支持

webpack config

使用 webpack-chain 来配置 webpack, 详细配置可查看:

  • webpack.base.js
  • webpack.dev.js
  • webpack.production.js

inspires

mobile-template's People

Contributors

dum3ng avatar

Watchers

 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.