Skip to content

Instantly share code, notes, and snippets.

@iamshaunjp
Created October 3, 2016 14:19
Show Gist options
  • Star 32 You must be signed in to star a gist
  • Fork 31 You must be signed in to fork a gist
  • Save iamshaunjp/a1c8fb653ddd5d27c3e38ab55e3c0a44 to your computer and use it in GitHub Desktop.
Save iamshaunjp/a1c8fb653ddd5d27c3e38ab55e3c0a44 to your computer and use it in GitHub Desktop.
var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src') + '/app/index.js',
output: {
path: path.resolve(__dirname, 'dist') + '/app',
filename: 'bundle.js',
publicPath: '/app/'
},
module: {
loaders: [
{
test: /\.js$/,
include: path.resolve(__dirname, 'src'),
loader: 'babel-loader',
query: {
presets: ['react', 'es2015']
}
},
{
test: /\.css$/,
loader: 'style-loader!css-loader'
}
]
}
};
@iamkennethreyt
Copy link

thank you shaun

@gagandamade
Copy link

You are the awesome man in explaining things.

@JohnsQuispe
Copy link

You are the best!!!! Thank you so much.

@onrush1995
Copy link

screenshot 2018-11-08 at 9 57 58

To prevent this you have to copy my fork & type a command which I inserted below.

@AgaStepniewska
Copy link

screenshot 2018-11-08 at 9 57 58

To prevent this you have to copy my fork & type a command which I inserted below.

Thank you. It helped.

@anm0l555
Copy link

anm0l555 commented May 3, 2020

screenshot 2018-11-08 at 9 57 58

To prevent this you have to copy my fork & type a command which I inserted below.

which command??

@rogasper
Copy link

screenshot 2018-11-08 at 9 57 58 To prevent this you have to copy my fork & type a command which I inserted below.

which command??

"In your command line"- $ npm install babel-loader@7 babel-core

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