-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from PrestaShop/dev
Release 2.1.0
- Loading branch information
Showing
71 changed files
with
4,789 additions
and
5,732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# php | ||
|
||
vendor | ||
.php_cs.cache | ||
/config_*.xml | ||
/vendor/ | ||
/.php_cs.cache | ||
|
||
# vim | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
const path = require('path'); | ||
const {merge} = require('webpack-merge'); | ||
const common = require('./common.js'); | ||
|
||
/** | ||
* Returns the development webpack config, | ||
* by merging development specific configuration with the common one. | ||
*/ | ||
function devConfig() { | ||
const dev = Object.assign( | ||
common, | ||
{ | ||
devtool: 'inline-source-map', | ||
devServer: { | ||
hot: true, | ||
contentBase: path.resolve(__dirname, '/../public'), | ||
publicPath: '/', | ||
}, | ||
const devConfig = () => (merge( | ||
common, | ||
{ | ||
devtool: 'inline-source-map', | ||
devServer: { | ||
hot: true, | ||
contentBase: path.resolve(__dirname, '/../public'), | ||
publicPath: '/', | ||
}, | ||
); | ||
|
||
return dev; | ||
} | ||
}, | ||
) | ||
); | ||
|
||
module.exports = devConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,34 @@ | ||
const webpack = require('webpack'); | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
const {merge} = require('webpack-merge'); | ||
const common = require('./common.js'); | ||
|
||
/** | ||
* Returns the production webpack config, | ||
* by merging production specific configuration with the common one. | ||
* | ||
*/ | ||
function prodConfig() { | ||
const prod = Object.assign(common, { | ||
stats: 'minimal', | ||
optimization: { | ||
minimizer: [ | ||
new TerserPlugin({ | ||
sourceMap: true, | ||
terserOptions: { | ||
output: { | ||
comments: /@license/i, | ||
}, | ||
}, | ||
extractComments: false, | ||
}), | ||
], | ||
}, | ||
}); | ||
|
||
// Required for Vue production environment | ||
prod.plugins.push( | ||
const prodConfig = () => merge(common, { | ||
stats: 'minimal', | ||
optimization: { | ||
minimizer: [ | ||
new TerserPlugin({ | ||
sourceMap: true, | ||
terserOptions: { | ||
output: { | ||
comments: /@license/i, | ||
}, | ||
}, | ||
extractComments: false, | ||
}), | ||
], | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
}), | ||
); | ||
|
||
return prod; | ||
} | ||
], | ||
}); | ||
|
||
module.exports = prodConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.