4. app.js错误: Error: module ‘common.js’ is not defined, require args is './common’ 偶现,可以先重启 webpack 5. 小程序样式不生效,tailwind 伪类不生效(hover) 因为 标签要单独配置 hoverClass文档:https://docs.taro.zone/docs/components/viewContainer/view 6. Error: module ‘vendors.js’ is...
// tailwindcss.config.js const plugin = require("tailwindcss/plugin"); module.exports = { purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"], darkMode: false, // or 'media' or 'class' theme: { 浏览13提问于2021-04-03得票数 1 2回答 顺风CSS...
tailwind.config.js constplugin=require('tailwindcss/plugin')module.exports={// ...plugins:[plugin(function({addBase,addComponents,addUtilities,theme}){addBase({'h1':{fontSize:theme('fontSize.2xl'),},'h2':{fontSize:theme('fontSize.xl'),},})addComponents({'.card':{backgroundColor:theme(...
You can configure shortcuts for common @supports rules you’re using in your project in the theme.supports section of your tailwind.config.js file: 可以在配置文件中为[]内内容配置快捷方式,注意:快捷方式不是通过[]传入 /**@type{import('tailwindcss').Config} */module.exports= { theme: { sup...
# Changes to config/runtime.exs don't require recompiling the code COPY config/runtime.exs config/ COPY rel rel RUN mix release # start a new build stage so that the final image will only contain # the compiled release and other runtime necessities ...
Bug fix. Using require inside config file was causing an error if {type: module} is enabled. 0.0.4 Added ESM support for tailwind.config.js Development Only use npm as a package manager as vsce commands will not work when other package managers are used. Clone the repo run npm install...
因为您的tailwind.config.js文件中没有定义defaultTheme。您似乎试图通过添加新的自定义字体来扩展主题的...
If bundler is not being used to manage dependencies, install the gem by executing: $ gem install tailwind_merge To use it, pass in a single string: require"tailwind_merge"TailwindMerge::Merger.new.merge("px-2 py-1 bg-red hover:bg-dark-red p-3 bg-[#B91C1C]")# → "hover:bg-dark...
.is-default .btn-play-text { @apply f-18; } 报错如下 The f-18 class does not exist. If f-18 is a custom class, make sure it is defined within a @layer directive. github仓库中有这个issue,https://github.com/tailwindla... 作者给的解决方案是 const plugin = require('tailwindcss/plug...
When using Tailwind CSS with postcss-import, make sure that all your @import statements come before the @config directive in your CSS file.Why? postcss-import needs to process @import statements first, following CSS rules that require imports to appear before any other rules. If you place @...