Move over csp and loading to use webpack

This commit is contained in:
Matt Bierner
2018-03-05 10:17:15 -08:00
parent e5b1420d14
commit 36c3f4b008
6 changed files with 21 additions and 18 deletions

View File

@@ -5,7 +5,10 @@
const path = require('path');
module.exports = {
entry: './preview-src/index.ts',
entry: {
index: './preview-src/index.ts',
pre: './preview-src/pre.ts'
},
module: {
rules: [
{
@@ -20,7 +23,7 @@ module.exports = {
},
devtool: 'inline-source-map',
output: {
filename: 'bundle.js',
filename: '[name].js',
path: path.resolve(__dirname, 'media')
}
};