mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
55 lines
1.3 KiB
JavaScript
55 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
var __chunk1_js = require('./chunk1.js');
|
|
|
|
var webpack = {
|
|
dev: __chunk1_js.dev(),
|
|
client: {
|
|
entry: function () {
|
|
return {
|
|
main: './app/client'
|
|
};
|
|
},
|
|
output: function () {
|
|
return {
|
|
path: __chunk1_js.dest() + "/client",
|
|
filename: '[hash]/[name].js',
|
|
chunkFilename: '[hash]/[name].[id].js',
|
|
publicPath: '/client/'
|
|
};
|
|
}
|
|
},
|
|
server: {
|
|
entry: function () {
|
|
return {
|
|
server: './app/server'
|
|
};
|
|
},
|
|
output: function () {
|
|
return {
|
|
path: __chunk1_js.dest(),
|
|
filename: '[name].js',
|
|
chunkFilename: '[hash]/[name].[id].js',
|
|
libraryTarget: 'commonjs2'
|
|
};
|
|
}
|
|
},
|
|
serviceworker: {
|
|
entry: function () {
|
|
return {
|
|
'service-worker': './app/service-worker'
|
|
};
|
|
},
|
|
output: function () {
|
|
return {
|
|
path: __chunk1_js.dest(),
|
|
filename: '[name].js',
|
|
chunkFilename: '[name].[id].[hash].js'
|
|
};
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = webpack;
|
|
//# sourceMappingURL=./webpack.ts.js.map
|