如何在atool-build的webpack配置文件中,添加新plugin? #32

Closed
SSebo opened this Issue Dec 30, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@SSebo

SSebo commented Dec 30, 2015

webpackConfig.plugins.push(
    new webpack.DefinePlugin({
      __DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'true')),
      __PRERELEASE__: JSON.stringify(JSON.parse(process.env.BUILD_PRERELEASE || 'false'))
    })
  );

会报错,说webpack not defined

@sorrycc

This comment has been minimized.

Show comment
Hide comment
@sorrycc

sorrycc Dec 30, 2015

Member
var webpack = require('atool-build/lib/webpack');
Member

sorrycc commented Dec 30, 2015

var webpack = require('atool-build/lib/webpack');
@SSebo

This comment has been minimized.

Show comment
Hide comment
@SSebo

SSebo Dec 30, 2015

非常感谢

SSebo commented Dec 30, 2015

非常感谢

@SSebo SSebo closed this Dec 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment