Closed
Description
I'm trying to figure it out how to setup aliases and everything from this webpack config for loading quilljs editor. maybe you guys have an idea or something.
Var path = require ('path');
Module.exports = {
Entry: "./app.js",
Output: {
Path: __dirname + "/dist",
Filename: "bundle.js"
}
Resolve: {
Alias: {
'Parchment': path.resolve(__ dirname, 'node_modules/parchment/src/parchment.ts'),
'Quill $': path.resolve(__ dirname, 'node_modules/quill/quill.js'),
}
Extensions: ['.js', '.ts', '.svg']
}
Module: {
Rules: [{
Test: /\.js$/,
Use: [{
Loader: 'babel-loader',
Options: {
Presets: ['es2015']
}
}],
}, {
Test: /\.ts$/,
Use: [{
Loader: 'ts-loader',
Options: {
CompilerOptions: {
Declaration: false,
Target: 'es5',
Module: 'commonjs'
}
TranspileOnly: true
}
}]
}, {
Test: /\.svg$/,
Use: [{
Loader: 'html-loader',
Options: {
Minimize: true
}
}]
}]
}
}