PhpStorm:source LESS下的group/nest*.map文件(以及*.css文件)
当前,配置文件监视程序时,PhpStorm将生成的PhpStorm:source LESS下的group/nest*.map文件(以及*.css文件),css,intellij-idea,less,phpstorm,Css,Intellij Idea,Less,Phpstorm,当前,配置文件监视程序时,PhpStorm将生成的*.css文件嵌套在*.less文件下 是否有任何方法可以将*.map文件也放在下面 例如: 它是less.jar>plugin.xml文件中的这些设置之一吗 <idea-plugin version="2"> <name>LESS support</name> <id>org.jetbrains.plugins.less</id> <category>HTML
*.css
文件嵌套在*.less
文件下
是否有任何方法可以将*.map
文件也放在下面
例如:
它是less.jar>plugin.xml
文件中的这些设置之一吗
<idea-plugin version="2">
<name>LESS support</name>
<id>org.jetbrains.plugins.less</id>
<category>HTML/JavaScript Development</category>
<vendor>JetBrains</vendor>
<description>
<![CDATA[
This plugin supports <a href="http://lesscss.org/">LESS</a> dialect of CSS that extends it with dynamic behavior such as variables, mixins, operators and functions.
The following features are available:
<ul>
<li>Dedicated file type.</li>
<li>LESS page under the Code Style node of the Settings/Preferences dialog.</li>
<li>Syntax and error highlighting.</li>
<li>Code formatting and folding.</li>
<li>Code completion.</li>
</ul>
]]>
</description>
<depends>com.intellij.css</depends>
<depends>com.intellij.modules.lang</depends>
<depends optional="true" config-file="less-watcher.xml">com.intellij.plugins.watcher</depends>
<depends optional="true" config-file="less-copyright.xml">com.intellij.copyright</depends>
<extensions defaultExtensionNs="com.intellij">
<completion.contributor language="CSS" implementationClass="org.jetbrains.plugins.less.completion.LessCompletionContributor"/>
<completion.contributor language="CSS" implementationClass="org.jetbrains.plugins.less.completion.LessDumbAwareCompletionContributor"/>
<lang.implementationTextSelectioner language="LESS" implementationClass="com.intellij.psi.css.CSSImplementationTextSelectioner"/>
<css.structureViewChildrenProvider implementation="org.jetbrains.plugins.less.fileStructure.LessStructureViewElementsProvider"/>
<errorHandler implementation="com.intellij.diagnostic.ITNReporter"/>
<lang.braceMatcher language="LESS" implementationClass="org.jetbrains.plugins.less.editor.LessBraceMatcher"/>
<typedHandler implementation="org.jetbrains.plugins.less.editor.LessBraceInterpolationTypedHandler" id="lessInterpolationTypedHandler"/>
<typedHandler implementation="org.jetbrains.plugins.less.editor.LessTypedHandler"/>
<gotoSymbolContributor implementation="org.jetbrains.plugins.less.LessGotoSymbolContributor"/>
<annotator language="LESS" implementationClass="org.jetbrains.plugins.less.annotator.LessColorAnnotator"/>
<fileTypeFactory implementation="org.jetbrains.plugins.less.LESSFileTypeFactory"/>
<lang.parserDefinition language="LESS" implementationClass="org.jetbrains.plugins.less.parser.LESSParserDefinition"/>
<lang.syntaxHighlighterFactory language="LESS" implementationClass="org.jetbrains.plugins.less.highlighting.LessSyntaxHighlighterFactory"/>
<lang.ast.factory language="LESS" implementationClass="org.jetbrains.plugins.less.psi.impl.LESSTreeElementFactory"/>
<lang.commenter language="LESS" implementationClass="org.jetbrains.plugins.less.LESSCommenter"/>
<psi.referenceContributor implementation="org.jetbrains.plugins.less.references.LESSReferenceContributor"/>
<lang.findUsagesProvider language="LESS" implementationClass="org.jetbrains.plugins.less.usages.LESSFindUsagesProvider"/>
<renameInputValidator implementation="org.jetbrains.plugins.less.rename.LESSRenameInputValidator"/>
<extendWordSelectionHandler implementation="org.jetbrains.plugins.less.editor.LessExtendWordSelectionHandler"/>
<colorSettingsPage implementation="org.jetbrains.plugins.less.highlighting.LESSColorsPage"/>
<lang.braceMatcher language="LESS" implementationClass="com.intellij.psi.css.impl.util.editor.CssBraceMatcher"/>
<lang.foldingBuilder language="LESS" implementationClass="com.intellij.psi.css.impl.util.editor.CssFoldingBuilder"/>
<codeInsight.parameterInfo language="LESS" implementationClass="com.intellij.psi.css.parameterinfo.CssParameterInfoHandler"/>
<enterHandlerDelegate implementation="org.jetbrains.plugins.less.editor.LESSEnterHandler" order="after EnterBetweenBracesHandler"/>
<quoteHandler fileType="LESS" className="com.intellij.psi.css.impl.util.editor.CssQuoteHandler"/>
<css.elementDescriptorProvider implementation="org.jetbrains.plugins.less.descriptors.LessElementDescriptorProvider"
order="last, before cssElementDescriptorProvider"/>
<codeStyleSettingsProvider implementation="org.jetbrains.plugins.less.settings.LESSCodeStyleSettingsProvider"/>
<langCodeStyleSettingsProvider implementation="org.jetbrains.plugins.less.settings.LESSLanguageCodeStyleSettingsProvider"/>
<lang.formatter language="LESS" implementationClass="org.jetbrains.plugins.less.formatter.LessFormattingModelBuilder"/>
<spellchecker.support language="LESS" implementationClass="org.jetbrains.plugins.less.spellchecking.LessSpellcheckingStrategy"/>
<spellchecker.bundledDictionaryProvider implementation="org.jetbrains.plugins.less.spellchecking.LessBundledDictionaryProvider"/>
<usageTypeProvider implementation="org.jetbrains.plugins.less.usages.LessUsageTypeProvider"/>
<problemFileHighlightFilter implementation="org.jetbrains.plugins.less.highlighting.LessProblemFileHighlightFilter"/>
<breadcrumbsInfoProvider implementation="org.jetbrains.plugins.less.editor.LessBreadcrumbsInfoProvider"/>
<previewHintProvider implementation="org.jetbrains.plugins.less.editor.LessPreviewHintProvider"/>
<embeddedTokenTypesProvider implementation="org.jetbrains.plugins.less.LessTokenTypesProvider"/>
<include.provider implementation="org.jetbrains.plugins.less.include.LessFileIncludeProvider"/>
<internalFileTemplate name="Less File"/>
<stubIndex implementation="org.jetbrains.plugins.less.psi.stubs.LessMixinIndex"/>
<stubIndex implementation="org.jetbrains.plugins.less.psi.stubs.LessVariableIndex"/>
<stubElementTypeHolder class="org.jetbrains.plugins.less.LESSElementTypes"/>
<lang.inspectionSuppressor language="LESS" implementationClass="org.jetbrains.plugins.less.inspections.suppress.LessInspectionSuppressor"/>
<annotator language="LESS" implementationClass="org.jetbrains.plugins.less.annotator.LessErrorsAnnotator"/>
<annotator language="CSS" implementationClass="org.jetbrains.plugins.less.annotator.LessErrorsAnnotator"/>
<localInspection language="LESS" bundle="org.jetbrains.plugins.less.LESSBundle"
key="inspections.unresolved.variable.name"
groupKey="inspections.group.name" enabledByDefault="true" level="WARNING"
implementationClass="org.jetbrains.plugins.less.inspections.LessUnresolvedVariableInspection"/>
<localInspection language="LESS" bundle="org.jetbrains.plugins.less.LESSBundle"
key="inspections.unresolved.mixin.name"
groupKey="inspections.group.name" enabledByDefault="true" level="WARNING"
implementationClass="org.jetbrains.plugins.less.inspections.LessUnresolvedMixinInspection"/>
<localInspection language="LESS" bundle="org.jetbrains.plugins.less.LESSBundle"
key="inspections.resolved.without.imports.name"
groupKey="inspections.group.name" enabledByDefault="true" level="WEAK WARNING"
implementationClass="org.jetbrains.plugins.less.inspections.LessResolvedByNameOnlyInspection"/>
</extensions>
<extensions defaultExtensionNs="com.intellij.css">
<supportedFileTypesProvider implementation="org.jetbrains.plugins.less.index.LessSupportedFileTypesProvider"/>
<cssInspectionFilter language="LESS" implementationClass="org.jetbrains.plugins.less.inspections.LessCssInspectionFilter"/>
</extensions>
</idea-plugin>
更少的支持
org.jetbrains.plugins.less
HTML/JavaScript开发
喷气式飞机
专用文件类型
“设置/首选项”对话框的“代码样式”节点下的页面较少
语法和错误突出显示
代码格式化和折叠
代码完成
]]>
com.intellij.css
com.intellij.modules.lang
com.intellij.plugins.watcher
版权所有
不,它与更少的插件描述符没有关系。当然,这是可能的。您只需确保在文件查看器的“要刷新的输出路径”字段中指定了.map
文件的模式。像
$FileNameWithoutExtension$.css:$FileNameWithoutExtension$.map
根据我的经验,Iena建议的配置无法正常工作,为了生成文件.map,我以以下方式配置了文件监视程序的设置:
filename.css.map
参数:
--no-color $FileName$
--source map=$FileNameWithoutExtension$.css.map
-source-map-url=$FileNameWithoutExtension$.css.map
要刷新的输出路径:
$FileNameWithoutExtension$.css:$FileNameWithoutExtension$.css.map
映射文件名以以下方式包含.css路径很重要:
filename.css.map
--source map=filename命令生成.map文件,并将其链接到生成的css文件中
下面是我的文件监视程序的配置:
我希望能对你有用
好代码
D.快速解决方案it:在参数中使用标志
--源映射少内联--源映射内联
它将把地图存储在css文件中
但是更好的解决方案是使用grunt/gulp builder…对于SCS,您可能希望使用类似于$FileNameWithoutExtension$.css:$FileNameWithoutExtension$.css.map的内容