liferay / liferay-theme-tasks

A set of tasks for building and deploying Liferay Portal themes.
18 stars 24 forks source link

sourcemaps #18

Closed justLuiz closed 8 years ago

justLuiz commented 8 years ago

I looked at the task build: compile-ruby-sass that option sourceMap is set to false, there is a problem for this option to be customizable?

robframpton commented 8 years ago

It shouldn't be a problem to make it configurable, I will most likely make it an option you pass into the registerTasks method in your theme's gulpfile.js.

robframpton commented 8 years ago

With v1.0.9 you can now pass options to the sass compiler through the registerTask sassOptions config object.

So in your theme's gulpfile.js you could do...

liferayThemeTasks.registerTasks({
  gulp: gulp,
  sassOptions: {
    // Options that get passed to either gulp-sass or gulp-ruby-sass
  }
});
justLuiz commented 8 years ago

Thanks, i will try on my liferay themes.