Giter Club home page Giter Club logo

sao-simple-web's Introduction

sao-simple-web

babel webpack html-webpack-plugin mini-css-extract-plugin

简单网页应用生成器

如何使用

首先安装SAO

yarn global add sao
# or
npm i -g sao

然后执行以下命令创建你的网页应用。

sao lpreterite/sao-simple-web my-project

特征

  • 基于postcss提供scss和precss两种CSS编码风格
  • 基于babel@7提供es6/7的JS编码风格和特性
  • 基于webpack进行构建
  • 样式基于autoprefixer处理兼容
  • 样式基于cssnano处理压缩
  • 基于webpack使用imagemin-webpack-plugin插件以复制的方式压缩图片
  • CSS样式与JS命令基于webpack使用html-webpack-pluginmini-css-extract-plugin自动添加至HTML模板

License

MIT © lpreterite

sao-simple-web's People

Contributors

lpreterite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sao-simple-web's Issues

JS引入图片后,构建会一直不成功

问题成因大概在outputPath设置上:

       {
            test: /\.(png|jpe?g|gif)$/,
            loader:'file-loader',
            options: {
                outputPath: path.resolve(__dirname, "assets/images"),
            }
        }

修改为下面的情况就正常了,图片将会生成到dist/assets目录下:

       {
            test: /\.(png|jpe?g|gif)$/,
            loader:'file-loader',
            options: {
                outputPath: "assets",
            }
        }

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.