new version for latest webpack 4.28.x
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
const path = require('path');
|
||||
module.exports = {
|
||||
entry: {
|
||||
'main': path.resolve(__dirname, 'App', 'boot.ts')
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js", ".json"]
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
//ts to js
|
||||
test: /\.ts$/,
|
||||
use: 'ts-loader'
|
||||
},
|
||||
{
|
||||
//html to js
|
||||
test: /\.html$/,
|
||||
use: 'html-loader'
|
||||
},
|
||||
{
|
||||
//css to js to inline style append
|
||||
test: /\.css$/,
|
||||
use: ['style-loader', 'css-loader']
|
||||
},
|
||||
{
|
||||
//less to css to js to inline style append
|
||||
test: /\.less$/,
|
||||
use: ['style-loader', 'css-loader', 'less-loader']
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user