A demo project for using Framework7 with Webpack3.0 via Babel!
- Framework7
- Webpack
- Babel
- Less
- Polyglot For i18n.
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
git clone https://github.com/hejianxian/framework7-webpack-demo.git
cd framework7-webpack-demo
npm install
Or you can use Yarn.
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"
}
}
}
npm run build
MIT @Hejx