mext-plugin-styled-components-2rem
v0.0.8
Published
Let developers write styles using styled-components
Downloads
19
Readme
mext-plugin-styled-components-2rem
声明: 插件开发依赖安装请使用
yarn
工具,只能使用该工具,因为我们需要通过其link
功能来实现模块引用
插件使用介绍
安装
yarn add mext-plugin-styled-components-2rem
mext.config.js 的配置
export default {
plugins: ['mext-plugin-styled-components-2rem'],
};
开发步骤
#1. 安装依赖
yarn
#2. 启动开发环境
yarn dev
#3. 切换到默认示例目录
cd examples/basic
#4. 运行示例
../../node_modules/.bin/mext dev
#4. 或者这样运行
yarn dev
#5. 开发演示
#5.1 修改文件`src/plugin/node.tsx`内的文字内容,然后保存
#5.2 刷新浏览器页面,你可以看到你修改的内容立即显示出来