framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

Generate FrameWork7 Vue Custom build

Open manish2535 opened this issue 8 years ago • 1 comments

  • Framework7 version: [e.g. 3.0.0] 3.4.0
  • Vue.js version: [e.g. 2.0.0] 2.5.17
  • Platform and Target: [e.g. iOS 11 Cordova app, or Android 8 Chrome browser]
  • Live Link or JSFiddle: PREFERABLY (IF YOU WANT YOUR ISSUE TO BE RESOLVED ASAP). You can start from forking the following JSFiddle template: JSFiddle

Describe the bug

Hi I am trying to change the colors being used in the library so trying to do a custom build.

I have been using the “framework7-template-vue-webpack” and it comes with the following npm run commands:

  1. build-dev
  2. build-prod
  3. dev
  4. prod There are 3 more commands but those dont seem relevant. I followed the instructions found here - https://framework7.io/docs/custom-build.html In my my-config.js file I have changed the color of md: { themeColor: ‘#333333’, (GREY) colors: { blue: ‘#333333’…(GREY) } just to test if the custom build is working or not.

I tried running npm run build-prod -– --config ./scripts/my-config.js --output ./www2 => But there is no change in the site color and the output folder is still www instead of www2. It seems my config is not being used at all.

Can someone tell me if this is a bug or how to do a custom build in the “framework7-template-vue-webpack”? Thanks.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Actual Behavior

Explain what is actually happening

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

manish2535 avatar Nov 17 '18 17:11 manish2535

For webpack follow the guides for ES modules and LESS: http://framework7.io/docs/custom-build.html#es-modules http://framework7.io/docs/custom-build.html#lessjs

nolimits4web avatar Nov 20 '18 13:11 nolimits4web