Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 1.44 KB

README.md

File metadata and controls

81 lines (52 loc) · 1.44 KB

framework7-webpack-demo

A demo project for using Framework7 with Webpack3.0 via Babel!

Online Demo

Dependencies

Template

We have a base webpack-framework7 template, you can use WorkPlus-cli to get it.

[sudo] npm install -g workplus-cli

workplus start webpack-framework7 my-project

Download

git clone https://github.com/hejianxian/framework7-webpack-demo.git

cd framework7-webpack-demo

npm install

Or you can use Yarn.

Dev

npm run dev

If need proxy, you can use devserver-proxy to enable proxying.

Just like:

proxy: {
  "/api": "http://localhost:8081"
}

Some config setting, you can find in ./build/config.js:

module.exports = {
  dev: {
    host: 'localhost',
    port: 8080,
    proxy: {
      "/api": "http://localhost:3000"
    }
  }
}

Build

npm run build

LICENSE

MIT @Hejx