NervJS/taro-uilib-react

为啥打包的样式没有了

wuhong5478 opened this issue · 3 comments

样式打包不了吗

同样有这个疑惑 RollupCopy 没有生效? @Chen-jj

@wuhong5478

const resolveFile = path => NodePath.resolve(__dirname, path)

RollupCopy({
      targets: [
        {
          src: resolveFile('src/styles'),
          dest: resolveFile('dist')
        }
      ],
      verbose: true
    })

上面是我之前的 代码,改成一下代码就OK了

RollupCopy({
      targets: [
        {
          src: 'src/styles',
          dest: 'dist'
        }
      ],
      verbose: true
    })