Comments (5)
I think that's because it create map from child-theme.min.css not from source file (scss).
adding sourcemap in sass task, worked for me, it create map from scss file.
gulp.task('sass', function () { var stream = gulp.src('./sass/*.scss') .pipe(plumber()) .pipe(sourcemaps.init()) // add this .pipe(sass()) .pipe(sourcemaps.write('./')) // add this .pipe(gulp.dest('./css')) .pipe(rename('custom-editor-style.css')) .pipe(gulp.dest('./css')); return stream; });
Ps;
I dont't know it's a right way or not since I'm new in gulp.
from understrap-child.
I think it should be implemented in next version. Super elegant and effective.
from understrap-child.
@ezrx Thanks man, Your method is working, do you have any idea why this line
.pipe(rename('custom-editor-style.css'))
is necessery
from understrap-child.
Hi @coder618 I'm glad it's working,
to creating sourcemap is init sourcemap from scss > compiling scss > write map and add compiled destination, so I think that's line is unnecessery, thats line is from its original workflow and I don't think to touch it,
It's renaming child-theme.css to custom-editor-style.css and I don't have idea what thats css file use for.
from understrap-child.
Should be fixed by now. Closing this issue for housekeeping.
from understrap-child.
Related Issues (20)
- Upgrade guidance from 1.0.1 to 1.1 HOT 1
- I know this is my own ignorance, but I can not get a Bootstrap 5 sticky footer to work with the lastest Understrap-Child HOT 8
- Problem with npm run watch-bs HOT 1
- can't add functions in custom-javascript.js HOT 10
- theme cache HOT 2
- Uncaught ReferenceError: bootstrap is not defined HOT 1
- Understrap Import appears to do nothing HOT 1
- Where to put theme images for CSS background images? HOT 3
- Add single files or all .css files in copy assets HOT 2
- Off-Canvas menu behaviour is broken HOT 2
- Issues with npm run watch in the understrap-child HOT 2
- Changes to 'custom-editor-style.css' not reflected in 'custom-editor-style.min.css'? HOT 2
- Remove Customizations HOT 6
- Scss not transpiling & Recent Post filter not working for Custom Post Types
- console.log("Something"); from custom-javascript.js outputs nothing? HOT 1
- Make understrap child the default theme HOT 2
- Custom query members category - understrap_pagination not working HOT 4
- navbar-branding.php strips out my HTML somehow HOT 3
- wordpress not reading css from child theme. HOT 5
- Removing language menu from header results in visual glitch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from understrap-child.