Migrate to webpack 2
This commit is contained in:
@@ -54,13 +54,12 @@
|
|||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-diff": "^1.0.0",
|
"gulp-diff": "^1.0.0",
|
||||||
"gulp-jsbeautifier": "^2.0.4",
|
"gulp-jsbeautifier": "^2.0.4",
|
||||||
"json-loader": "^0.5.4",
|
|
||||||
"mocha": "^3.2.0",
|
"mocha": "^3.2.0",
|
||||||
"mocha-circleci-reporter": "0.0.2",
|
"mocha-circleci-reporter": "0.0.2",
|
||||||
"npm-run-all": "^4.0.2",
|
"npm-run-all": "^4.0.2",
|
||||||
"spectron": "~3.4.1",
|
"spectron": "~3.4.1",
|
||||||
"webpack": "^1.14.0",
|
"webpack": "^2.2.1",
|
||||||
"webpack-merge": "^1.1.2"
|
"webpack-merge": "^3.0.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.mattermost.desktop",
|
"appId": "com.mattermost.desktop",
|
||||||
|
@@ -8,12 +8,6 @@ module.exports = merge(base, {
|
|||||||
output: {
|
output: {
|
||||||
filename: './dist/main.js'
|
filename: './dist/main.js'
|
||||||
},
|
},
|
||||||
module: {
|
|
||||||
loaders: [{
|
|
||||||
test: /\.json$/,
|
|
||||||
loader: 'json'
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
node: {
|
node: {
|
||||||
__filename: false,
|
__filename: false,
|
||||||
__dirname: false
|
__dirname: false
|
||||||
|
@@ -14,15 +14,14 @@ module.exports = merge(base, {
|
|||||||
filename: '[name].js'
|
filename: '[name].js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
loaders: [{
|
rules: [{
|
||||||
test: /\.json$/,
|
|
||||||
loader: 'json'
|
|
||||||
}, {
|
|
||||||
test: /\.jsx$/,
|
test: /\.jsx$/,
|
||||||
loader: 'babel',
|
use: {
|
||||||
query: {
|
loader: 'babel-loader',
|
||||||
presets: ['react'],
|
options: {
|
||||||
plugins: ['transform-object-rest-spread']
|
presets: ['react'],
|
||||||
|
plugins: ['transform-object-rest-spread']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user