mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Babel6
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
const skeleton = require('./webpack-skeleton')
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
const JsonpTemplatePlugin = webpack.JsonpTemplatePlugin
|
||||
const FunctionModulePlugin = require('webpack/lib/FunctionModulePlugin')
|
||||
|
||||
var config = Object.assign({}, skeleton, {
|
||||
module: {
|
||||
@@ -30,12 +28,5 @@ var config = Object.assign({}, skeleton, {
|
||||
devtool: 'eval-source-map'
|
||||
})
|
||||
|
||||
config.target = function renderer (compiler) {
|
||||
compiler.apply(
|
||||
new JsonpTemplatePlugin(config.output),
|
||||
new FunctionModulePlugin(config.output)
|
||||
)
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user