taro-uilib-react icon indicating copy to clipboard operation
taro-uilib-react copied to clipboard

为啥打包的样式没有了

Open wuhong5478 opened this issue 5 years ago • 3 comments

image

wuhong5478 avatar Nov 16 '20 11:11 wuhong5478

样式打包不了吗

wuhong5478 avatar Nov 16 '20 11:11 wuhong5478

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

paulloo avatar Apr 07 '21 05:04 paulloo

@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
    })

paulloo avatar Apr 13 '21 06:04 paulloo