-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb24e69
commit e5f62fb
Showing
4 changed files
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ build/require | |
src/css | ||
examples/blog/build | ||
examples/blog/assets | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
|
||
var sources = [ | ||
//'./src/javascripts/ng-admin.js', | ||
'./src/sass/ng-admin.scss' | ||
'font-awesome/scss/font-awesome.scss', | ||
'bootstrap-sass/assets/stylesheets/_bootstrap.scss', | ||
'./src/sass/ng-admin.scss', | ||
|
||
'./src/javascripts/ng-admin.js' | ||
]; | ||
|
||
if (process.env.NODE_ENV !== 'production') { // for live reload | ||
//sources.push('webpack-dev-server/client?http://localhost:8080'); | ||
sources.push('webpack-dev-server/client?http://localhost:8080'); | ||
} | ||
|
||
var scssFolders = [ | ||
'/~/bootstrap-sass/assets/stylesheets/', | ||
'/~/font-awesome/scss/' | ||
]; | ||
|
||
module.exports = { | ||
entry: { | ||
'ng-admin': sources | ||
}, | ||
output: { | ||
publicPath: "http://locamlhost:8080/", | ||
publicPath: "http://localhost:8080/", | ||
filename: "build/[name].min.js" | ||
}, | ||
module: { | ||
loaders: [ | ||
{ test: /es6.+\.js$/, loader: 'babel-loader' }, | ||
{ test: /\.html$/, loader: 'html' }, | ||
{ test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader' }, | ||
{ | ||
test: /\.(woff2?|svg|ttf|eot)(\?.*)?$/, | ||
loader: 'file?name=build/assets/[name].[ext]' | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
loader: 'style!css!sass?includePaths[]=' + scssFolders.join('&includePaths[]=', scssFolders) | ||
loader: ExtractTextPlugin.extract('css!sass') | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
//new ExtractTextPlugin("build/[name].min.css", { | ||
// allChunks: true | ||
//}) | ||
new ExtractTextPlugin('build/ng-admin.min.css', { | ||
allChunks: true | ||
}) | ||
] | ||
}; |