mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 04:24:12 +00:00
Deprecate jsx extension
This commit is contained in:
parent
0872f5fad4
commit
4bd28d0053
33 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Winamp 2 implemented in HTML5 and JavaScript",
|
||||
"main": "index.html",
|
||||
"scripts": {
|
||||
"lint": "eslint --ext js,jsx .",
|
||||
"lint": "eslint .",
|
||||
"build": "webpack --config=webpack.production.config.js",
|
||||
"serve": "webpack-dev-server",
|
||||
"weight": "npm run build && gzip-size built/winamp.js | pretty-bytes",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const path = require('path');
|
|||
|
||||
module.exports = {
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.jsx']
|
||||
extensions: ['', '.js']
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
|
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
loader: 'url-loader?limit=100000'
|
||||
},
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
test: /\.js$/,
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
loader: 'babel' // 'babel-loader' is also a legal name to reference
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue