mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 16:31:16 +01:00
Merge pull request #152 from orangemug/feature/circle-ci-artifact-builds
Per branch / commit builds
This commit is contained in:
commit
fff1363134
2 changed files with 15 additions and 1 deletions
6
circle.yml
Normal file
6
circle.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
machine:
|
||||
node:
|
||||
version: 6
|
||||
test:
|
||||
post:
|
||||
- npm run build
|
|
@ -6,6 +6,14 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|||
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
var WebpackCleanupPlugin = require('webpack-cleanup-plugin');
|
||||
|
||||
var OUTPATH;
|
||||
if(process.env.CIRCLE_ARTIFACTS) {
|
||||
OUTPATH = path.join(process.env.CIRCLE_ARTIFACTS, "build");
|
||||
}
|
||||
else {
|
||||
OUTPATH = path.join(__dirname, '..', 'public');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
app: './src/index.jsx',
|
||||
|
@ -32,7 +40,7 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, '..', 'public'),
|
||||
path: OUTPATH,
|
||||
filename: '[name].[chunkhash].js',
|
||||
chunkFilename: '[chunkhash].js'
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue