Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit fdd7587

Browse files
committed
Fix loader names for webpack 2
1 parent 31b94b6 commit fdd7587

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

postinstall.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ configureDevDependencies(packageJson, function(add) {
4444
add("copy-webpack-plugin", "~3.0.1");
4545
add("awesome-typescript-loader", "~2.2.4");
4646
add("html-loader", "~0.4.3");
47+
add("raw-loader", "~0.5.1");
4748
});
4849

4950
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 4));

webpack.common.js.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = function(platform, destinationApp) {
4646
loaders: [
4747
{
4848
test: /\.html$/,
49-
loader: "html"
49+
loader: "html-loader"
5050
},
5151
{
5252
test: /\.ts$/,
@@ -55,7 +55,7 @@ module.exports = function(platform, destinationApp) {
5555
{
5656
test: /\.scss$/,
5757
loaders: [
58-
'raw', 'resolve-url', 'sass'
58+
'raw-loader', 'resolve-url', 'sass'
5959
]
6060
},
6161
]

0 commit comments

Comments
 (0)