Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack 3 #23

Open
KhalilMohammad opened this issue Jul 24, 2017 · 1 comment
Open

Webpack 3 #23

KhalilMohammad opened this issue Jul 24, 2017 · 1 comment

Comments

@KhalilMohammad
Copy link

KhalilMohammad commented Jul 24, 2017

In Webpack 3 output path should be absolute

const path = require('path');

module.exports = {
  entry: './src/App.jsx',
  output: {
   path: path.resolve(__dirname, 'static'),
   filename: 'app.bundle.js'
  }, module: {
   loaders: [{
    test: /\.jsx$/,
    loader: 'babel-loader'
   },]
  }
};

@KhalilMohammad
Copy link
Author

KhalilMohammad commented Jul 24, 2017

Common chunks plugin

Old Code
new webpack.optimize.CommonsChunkPlugin('vendor','vendor.bundle.js')
New Code
new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: 'vendor.bundle.js' })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant