sweet-zone / mcss-loader Goto Github PK
View Code? Open in Web Editor NEWmcss loader for webpack
License: MIT License
mcss loader for webpack
License: MIT License
如题:
//js使用
require("a.mcss");
//a.mcss文件中,行首部分为
@abstract ‘b.mcss’;
//结果提示:
ERROR in ./~/css-loader!./~/mcss-loader!./mcss/a.mcss
Module build failed: SyntaxError: b.mcss FILE NOT FOUND
at null.<anonymous> (d:\app\node_modules\mcss\lib\parser.js:1354:27)
at extend.reject (d:\app\node_modules\mcss\lib\helper\promise.js:63:10)
at ReadFileContext.callback (d:\app\node_modules\mcss\lib\helper\io.js:65:28)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)
Module build failed: SyntaxError: b.mcss FILE NOT FOUND
但其实文件时存在的,我用mcss指令直接运行编译,则不会报错,,正常编译
mcss -c mcss/mcss.json
btw:文件比较简单,自信不会在语法上出问题...
点解?怎么破?
-instance.translate()
+instance.translate(content)
直接传入content,否则mcss会去读取.rgl或.vue文件的内容,导致解析出错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.