Created
November 2, 2016 20:56
-
-
Save marinho/74c5bf800bce85cb1b48f746108fad15 to your computer and use it in GitHub Desktop.
CopyWebpackPlugin not copying static files
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
const | |
webpack = require('webpack'), | |
path = require('path'), | |
fileSystem = require('fs'), | |
helpers = require('./config/helpers'), | |
HtmlWebpackPlugin = require('html-webpack-plugin'), | |
ExtractTextPlugin = require('extract-text-webpack-plugin'), | |
CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = { | |
entry: { | |
devtools: './src/devtools.ts', | |
panel: './src/panel.ts' | |
}, | |
output: { | |
path: path.join(__dirname, 'build'), | |
filename: '[name].js' | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.ts$/, loaders: ['awesome-typescript-loader'] } | |
], | |
plugins: [ | |
new CopyWebpackPlugin([ | |
{ from: './src/**/*.html' }, | |
{ from: './src/**/*.css' } | |
]) | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment